@npie/cli 0.1.0-npie.1 → 0.1.0-npie.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/t3.mjs +2 -0
- package/package.json +1 -1
package/bin/t3.mjs
CHANGED
|
@@ -88,6 +88,8 @@ async function bootstrap(sourceDir) {
|
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
// mkdtemp needs its parent to exist; on a first run ~/.npie/source does not.
|
|
92
|
+
fs.mkdirSync(path.dirname(sourceDir), { recursive: true });
|
|
91
93
|
const staging = fs.mkdtempSync(`${sourceDir}.staging-`);
|
|
92
94
|
process.stderr.write(`npie: fetching Npie v${version}…\n`);
|
|
93
95
|
const tarball = path.join(staging, "source.tar.gz");
|