@patterkit/ops 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2865,6 +2865,7 @@ import { dirname as dirname4, relative, sep as sep2 } from "path";
2865
2865
  import { parseSource as parseSource4 } from "@patterkit/core";
2866
2866
  var SHARD_EXTENSIONS = [".patterflow", ".patterloc", ".patterx", ".patterproj"];
2867
2867
  var FIXED_DATE = /* @__PURE__ */ new Date("2000-01-01T00:00:00Z");
2868
+ var ENTRY_OPTS = { date: FIXED_DATE, createFolders: false };
2868
2869
  async function runPack(startPath) {
2869
2870
  const projectFile = findProjectFile(startPath);
2870
2871
  const root = dirname4(projectFile);
@@ -2876,8 +2877,8 @@ async function runPack(startPath) {
2876
2877
  files: files.map((f) => f.rel)
2877
2878
  };
2878
2879
  const zip = new JSZip();
2879
- zip.file("patter.manifest.json", JSON.stringify(manifest, null, 2) + "\n", { date: FIXED_DATE });
2880
- for (const f of files) zip.file(f.rel, readFileSync4(f.abs, "utf8"), { date: FIXED_DATE });
2880
+ zip.file("patter.manifest.json", JSON.stringify(manifest, null, 2) + "\n", ENTRY_OPTS);
2881
+ for (const f of files) zip.file(f.rel, readFileSync4(f.abs, "utf8"), ENTRY_OPTS);
2881
2882
  return zip.generateAsync({ type: "nodebuffer", compression: "DEFLATE", streamFiles: false });
2882
2883
  }
2883
2884
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/ops",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The shared operations layer: every project operation (load, validate, export, format, play, ...) as a pure function, consumed by the patter CLI and Patterpad alike.",
5
5
  "type": "module",
6
6
  "license": "MIT",