File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
const { join, resolve, relative } = require ( 'path' )
2
2
const { pathExists } = require ( 'fs-extra' )
3
3
const defu = require ( 'defu' )
4
+ const clearModule = require ( 'clear-module' )
5
+
4
6
const logger = require ( './logger' )
5
7
const defaultTailwindConfig = require ( './files/tailwind.config.js' )
6
8
@@ -27,6 +29,7 @@ module.exports = async function (moduleOptions) {
27
29
// Get and extend the Tailwind config
28
30
let tailwindConfig = { }
29
31
if ( await pathExists ( configPath ) ) {
32
+ clearModule ( configPath )
30
33
tailwindConfig = require ( configPath )
31
34
logger . info ( `Merging Tailwind config from ~/${ relative ( this . options . rootDir , configPath ) } ` )
32
35
}
Original file line number Diff line number Diff line change 24
24
" lib"
25
25
],
26
26
"dependencies" : {
27
+ "clear-module" : " ^4.1.1" ,
27
28
"consola" : " ^2.15.0" ,
28
29
"defu" : " ^3.1.0" ,
29
30
"fs-extra" : " ^9.0.1" ,
Original file line number Diff line number Diff line change @@ -2976,7 +2976,7 @@ callsites@^2.0.0:
2976
2976
resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50"
2977
2977
integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=
2978
2978
2979
- callsites@^3.0.0 :
2979
+ callsites@^3.0.0, callsites@^3.1.0 :
2980
2980
version "3.1.0"
2981
2981
resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
2982
2982
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
@@ -3234,6 +3234,14 @@ clean-stack@^2.0.0:
3234
3234
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
3235
3235
integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==
3236
3236
3237
+ clear-module@^4.1.1:
3238
+ version "4.1.1"
3239
+ resolved "https://registry.yarnpkg.com/clear-module/-/clear-module-4.1.1.tgz#bf8ba3b62eb70ee1e0adec90589741425cf32db8"
3240
+ integrity sha512-ng0E7LeODcT3QkazOckzZqbca+JByQy/Q2Z6qO24YsTp+pLxCfohGz2gJYJqZS0CWTX3LEUiHOqe5KlYeUbEMw==
3241
+ dependencies:
3242
+ parent-module "^2.0.0"
3243
+ resolve-from "^5.0.0"
3244
+
3237
3245
cli-boxes@^2.2.0:
3238
3246
version "2.2.0"
3239
3247
resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.0.tgz#538ecae8f9c6ca508e3c3c95b453fe93cb4c168d"
@@ -8212,6 +8220,13 @@ parent-module@^1.0.0:
8212
8220
dependencies:
8213
8221
callsites "^3.0.0"
8214
8222
8223
+ parent-module@^2.0.0:
8224
+ version "2.0.0"
8225
+ resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-2.0.0.tgz#fa71f88ff1a50c27e15d8ff74e0e3a9523bf8708"
8226
+ integrity sha512-uo0Z9JJeWzv8BG+tRcapBKNJ0dro9cLyczGzulS6EfeyAdeC9sbojtW6XwvYxJkEne9En+J2XEl4zyglVeIwFg==
8227
+ dependencies:
8228
+ callsites "^3.1.0"
8229
+
8215
8230
parse-asn1@^5.0.0, parse-asn1@^5.1.5:
8216
8231
version "5.1.5"
8217
8232
resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.5.tgz#003271343da58dc94cace494faef3d2147ecea0e"
You can’t perform that action at this time.
0 commit comments