@patterkit/cli 0.1.0 → 0.1.1
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/dist/cli.js +3 -2
- package/package.json +10 -4
package/dist/cli.js
CHANGED
|
@@ -238743,6 +238743,7 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
238743
238743
|
import { dirname as dirname4, relative, sep as sep2 } from "path";
|
|
238744
238744
|
var SHARD_EXTENSIONS = [".patterflow", ".patterloc", ".patterx", ".patterproj"];
|
|
238745
238745
|
var FIXED_DATE = /* @__PURE__ */ new Date("2000-01-01T00:00:00Z");
|
|
238746
|
+
var ENTRY_OPTS = { date: FIXED_DATE, createFolders: false };
|
|
238746
238747
|
async function runPack(startPath) {
|
|
238747
238748
|
const projectFile = findProjectFile(startPath);
|
|
238748
238749
|
const root2 = dirname4(projectFile);
|
|
@@ -238754,8 +238755,8 @@ async function runPack(startPath) {
|
|
|
238754
238755
|
files: files.map((f) => f.rel)
|
|
238755
238756
|
};
|
|
238756
238757
|
const zip = new import_jszip.default();
|
|
238757
|
-
zip.file("patter.manifest.json", JSON.stringify(manifest, null, 2) + "\n",
|
|
238758
|
-
for (const f of files) zip.file(f.rel, readFileSync4(f.abs, "utf8"),
|
|
238758
|
+
zip.file("patter.manifest.json", JSON.stringify(manifest, null, 2) + "\n", ENTRY_OPTS);
|
|
238759
|
+
for (const f of files) zip.file(f.rel, readFileSync4(f.abs, "utf8"), ENTRY_OPTS);
|
|
238759
238760
|
return zip.generateAsync({ type: "nodebuffer", compression: "DEFLATE", streamFiles: false });
|
|
238760
238761
|
}
|
|
238761
238762
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The `patter` CLI: validate, format, export, and play a Patter project.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Ian Thomas",
|
|
8
8
|
"homepage": "https://patterkit.dev",
|
|
9
|
-
"repository": {
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/patterkit/patter.git",
|
|
12
|
+
"directory": "packages/cli"
|
|
13
|
+
},
|
|
10
14
|
"bugs": "https://github.com/patterkit/patter/issues",
|
|
11
|
-
"publishConfig": {
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
12
18
|
"bin": {
|
|
13
19
|
"patter": "./dist/cli.js"
|
|
14
20
|
},
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
},
|
|
25
31
|
"dependencies": {
|
|
26
32
|
"@patterkit/core": "0.1.0",
|
|
27
|
-
"@patterkit/ops": "0.1.
|
|
33
|
+
"@patterkit/ops": "0.1.1",
|
|
28
34
|
"@wildwinter/simple-vc-lib": "^0.2.0"
|
|
29
35
|
}
|
|
30
36
|
}
|