@cubing/dev-config 0.6.4 → 0.6.5
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/package.json.ts +6 -1
- package/package.json +1 -1
package/bin/package.json.ts
CHANGED
|
@@ -433,12 +433,17 @@ await using _ = {
|
|
|
433
433
|
[Symbol.asyncDispose]: () => tempDir.rm_rf(),
|
|
434
434
|
};
|
|
435
435
|
const extractionDir = await tempDir.join("extracted").mkdir();
|
|
436
|
+
// TODO: is there a 100% reliable way to test against paths that *will* be packed?
|
|
437
|
+
// Note that this has to take into account `.gitignore`, `.npmignore`, and `"files"` — with globs and excludes.
|
|
438
|
+
// For now, we print the command to make it clear that some heavy lifting is going on (and that it's not our fault that it's slow).
|
|
436
439
|
const data: { filename: string }[] = await new PrintableShellCommand("npm", [
|
|
437
440
|
"pack",
|
|
438
441
|
"--json",
|
|
439
442
|
"--ignore-scripts",
|
|
440
443
|
["--pack-destination", tempDir],
|
|
441
|
-
])
|
|
444
|
+
])
|
|
445
|
+
.print()
|
|
446
|
+
.json();
|
|
442
447
|
const tgzPath = tempDir.join(data[0].filename);
|
|
443
448
|
await new PrintableShellCommand("tar", [
|
|
444
449
|
["-C", extractionDir],
|