Jordan Pittman bf44941049
Allow resolving content paths relative to the config file (#9396)
* 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
2022-09-23 08:09:02 -04:00

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()
}
},
}