Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit f9d8c89

Browse files
committed
Merge branch 'anuraghazra-windows-path-fix' into main
2 parents 6a076ea + b3d2593 commit f9d8c89

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "src/index.js",
66
"repository": "https://github.com/tailwindlabs/tailwindcss-jit",
77
"scripts": {
8-
"test": "TAILWIND_MODE=build jest"
8+
"test": "cross-env TAILWIND_MODE=build jest"
99
},
1010
"prettier": {
1111
"printWidth": 100,
@@ -30,6 +30,7 @@
3030
"devDependencies": {
3131
"@tailwindcss/aspect-ratio": "^0.2.0",
3232
"autoprefixer": "^10.2.4",
33+
"cross-env": "^7.0.3",
3334
"jest": "^26.6.3",
3435
"postcss": "^8.2.6",
3536
"postcss-cli": "^8.3.1",

src/lib/setupContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function trackModified(files) {
185185

186186
for (let file of files) {
187187
let pathname = url.parse(file).pathname
188-
let newModified = fs.statSync(pathname).mtimeMs
188+
let newModified = fs.statSync(decodeURIComponent(pathname)).mtimeMs
189189

190190
if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
191191
changed = true

0 commit comments

Comments
 (0)