mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* Update lockfile * Tweak formatting * Refactor content path parsing * Allow resolving content paths relative to the config file * Include resolved symlinks as additional content paths * Update changelog * Work on suite of tests for content resolution * reformat integration test list * Move content resolution tests to integration * Update future and experimental types
25 lines
321 B
JavaScript
25 lines
321 B
JavaScript
// @ts-config
|
|
|
|
let stack = []
|
|
|
|
module.exports.cwd = {
|
|
get current() {
|
|
return process.cwd()
|
|
},
|
|
|
|
async switch(dir) {
|
|
stack.push(process.cwd())
|
|
process.chdir(dir)
|
|
},
|
|
|
|
async restore() {
|
|
process.chdir(stack.pop())
|
|
},
|
|
|
|
async unwind() {
|
|
while (stack.length) {
|
|
this.restore()
|
|
}
|
|
},
|
|
}
|