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

Commit f3f3c6c

Browse files
committed
Move process.env read to sharedState module
1 parent 19ed602 commit f3f3c6c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/setupContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let env = sharedState.env
3232
// If the directory already exists we delete any existing touch files,
3333
// invalidating any caches associated with them.
3434
const touchDir =
35-
process.env.TAILWIND_TOUCH_DIR || path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')
35+
env.TAILWIND_TOUCH_DIR || path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')
3636

3737
if (!sharedState.env.TAILWIND_DISABLE_TOUCH) {
3838
if (fs.existsSync(touchDir)) {

src/lib/sharedState.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
NODE_ENV: process.env.NODE_ENV,
77
DEBUG: process.env.DEBUG !== undefined,
88
TAILWIND_DISABLE_TOUCH: process.env.TAILWIND_DISABLE_TOUCH !== undefined,
9+
TAILWIND_TOUCH_DIR: process.env.TAILWIND_TOUCH_DIR,
910
},
1011
contextMap: new Map(),
1112
configContextMap: new Map(),

0 commit comments

Comments
 (0)