File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- import path from 'path'
2
- import { fileURLToPath } from 'url'
3
- import postcss from 'postcss'
4
- import tailwindcss from '@tailwindcss/postcss'
1
+ const path = require ( 'path' )
2
+ const postcss = require ( 'postcss' )
3
+ const tailwindcss = require ( '@tailwindcss/postcss' )
5
4
6
5
async function run ( file ) {
7
6
const { currentTestName } = expect . getState ( )
@@ -13,7 +12,7 @@ async function run(file) {
13
12
`
14
13
15
14
const result = await postcss ( tailwindcss ( ) ) . process ( config , {
16
- from : `${ path . resolve ( fileURLToPath ( import . meta . url ) ) } ?test=${ currentTestName } ` ,
15
+ from : `${ path . resolve ( __filename ) } ?test=${ currentTestName } ` ,
17
16
} )
18
17
19
18
return result . css
Original file line number Diff line number Diff line change 16
16
" intersection" ,
17
17
" observer"
18
18
],
19
- "type" : " module" ,
20
19
"main" : " dist/index.cjs.js" ,
21
20
"module" : " dist/index.esm.js" ,
22
21
"style" : " dist/index.css" ,
29
28
"dev" : " npx @tailwindcss/cli -i docs/example/input.css -o docs/example/output.css" ,
30
29
"watch" : " npx @tailwindcss/cli -i docs/example/input.css -o docs/example/output.css --watch" ,
31
30
"prod" : " npx @tailwindcss/cli -i docs/example/input.css -o docs/example/output.css --minify" ,
32
- "build" : " node scripts/build.js && npm run prod" ,
31
+ "build" : " node scripts/build.mjs && npm run prod" ,
33
32
"test" : " node --experimental-vm-modules node_modules/jest/bin/jest.js --setupFilesAfterEnv '<rootDir>/jest/customMatchers.js'" ,
34
33
"lint" : " npx eslint --ignore-pattern 'dist/*'" ,
35
34
"lint:fix" : " npx eslint --ignore-pattern 'dist/*' --fix"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments