@slicemachine/init 2.10.56 → 2.10.58-beta.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 (57) hide show
  1. package/README.md +8 -0
  2. package/bin/slicemachine-init.js +93 -23
  3. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
  4. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
  5. package/dist/_node_modules/@babel/highlight/lib/index.cjs +2 -2
  6. package/dist/_node_modules/@babel/highlight/lib/index.js +2 -2
  7. package/dist/_node_modules/cross-spawn/index.cjs +1 -1
  8. package/dist/_node_modules/cross-spawn/index.js +1 -1
  9. package/dist/_node_modules/dir-glob/index.cjs +2 -2
  10. package/dist/_node_modules/dir-glob/index.js +2 -2
  11. package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
  12. package/dist/_node_modules/fast-glob/out/index.js +1 -1
  13. package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
  14. package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
  15. package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
  16. package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
  17. package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
  18. package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
  19. package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
  20. package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
  21. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
  22. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
  23. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
  24. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
  25. package/dist/_node_modules/fast-glob/out/readers/reader.cjs +1 -1
  26. package/dist/_node_modules/fast-glob/out/readers/reader.js +1 -1
  27. package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
  28. package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
  29. package/dist/_node_modules/js-tokens/index.cjs +1 -1
  30. package/dist/_node_modules/js-tokens/index.js +1 -1
  31. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
  32. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +1 -1
  33. package/dist/_node_modules/path-type/index.cjs +1 -1
  34. package/dist/_node_modules/path-type/index.js +1 -1
  35. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
  36. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
  37. package/dist/_virtual/index16.cjs +2 -2
  38. package/dist/_virtual/index16.js +2 -2
  39. package/dist/_virtual/index17.cjs +2 -2
  40. package/dist/_virtual/index17.js +2 -2
  41. package/dist/_virtual/index18.cjs +2 -2
  42. package/dist/_virtual/index18.js +2 -2
  43. package/dist/_virtual/index4.cjs +2 -2
  44. package/dist/_virtual/index4.js +2 -2
  45. package/dist/_virtual/index5.cjs +2 -2
  46. package/dist/_virtual/index5.js +2 -2
  47. package/dist/_virtual/index6.cjs +2 -2
  48. package/dist/_virtual/index6.js +2 -2
  49. package/dist/_virtual/index7.cjs +2 -2
  50. package/dist/_virtual/index7.js +2 -2
  51. package/dist/_virtual/index8.cjs +2 -2
  52. package/dist/_virtual/index8.js +2 -2
  53. package/dist/packages/init/package.json.cjs +5 -2
  54. package/dist/packages/init/package.json.cjs.map +1 -1
  55. package/dist/packages/init/package.json.js +5 -2
  56. package/dist/packages/init/package.json.js.map +1 -1
  57. package/package.json +5 -4
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ > Slice Machine is replaced by the [Prismic CLI](https://prismic.io/docs/cli) and the [Type Builder](https://prismic.io/docs/type-builder). Existing projects are still supported. To move a project, see [Migrate to the Type Builder](https://prismic.io/docs/slice-machine#migrate-to-the-type-builder).
2
+ >
3
+ > Using an AI agent? Teach it the new way by installing the Prismic skill:
4
+ >
5
+ > ```bash
6
+ > npx skills add --global --yes prismicio/skills
7
+ > ```
8
+
1
9
  # @slicemachine/init
2
10
 
3
11
  [![npm version][npm-version-src]][npm-version-href]
@@ -1,31 +1,101 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import semver from "semver";
4
- import { readFileSync } from "node:fs";
5
- import { fileURLToPath } from "node:url";
6
- import { dirname, join } from "node:path";
7
- import chalk from "chalk";
8
-
9
- const __dirname = dirname(fileURLToPath(import.meta.url));
10
- const pkg = JSON.parse(
11
- readFileSync(join(__dirname, "../package.json"), "utf8"),
12
- );
3
+ // Slice Machine is deprecated. Every run says so. Without `--force` the run
4
+ // stops here; with it, the original CLI takes over.
13
5
 
14
- const requiredVersion = pkg.engines.node;
6
+ import { createRequire } from "node:module";
7
+ import { setTimeout } from "node:timers/promises";
8
+ import { parseArgs } from "node:util";
15
9
 
16
- if (!requiredVersion) {
17
- throw new Error("Missing engines.node in package.json.");
18
- }
10
+ // The manager's ES build has directory imports Node rejects; use CommonJS.
11
+ const require = createRequire(import.meta.url);
12
+ const { createSliceMachineManager } = require("@slicemachine/manager");
13
+ const pkg = require("../package.json");
14
+
15
+ const { values } = parseArgs({
16
+ args: process.argv.slice(2),
17
+ options: {
18
+ repository: { type: "string", short: "r" },
19
+ force: { type: "boolean" },
20
+ },
21
+ strict: false,
22
+ allowPositionals: true,
23
+ });
24
+ // The previous parser also accepted `-r=<name>`.
25
+ const repository =
26
+ typeof values.repository === "string"
27
+ ? values.repository.replace(/^=/, "")
28
+ : undefined;
29
+ // `--force=true` parses as a string, so accept both spellings.
30
+ const forced = values.force === true || values.force === "true";
31
+
32
+ const prismicInit = repository
33
+ ? `npx prismic init --repo ${repository}`
34
+ : "npx prismic init";
35
+ const slicemachineInit = repository
36
+ ? `npx @slicemachine/init --repository ${repository} --force`
37
+ : "npx @slicemachine/init --force";
38
+
39
+ process.stderr.write(
40
+ forced
41
+ ? `Slice Machine is deprecated. Continuing because --force was passed.
42
+
43
+ The @slicemachine/init command is replaced by prismic init, which models content in the Type Builder:
44
+
45
+ ${prismicInit}
46
+
47
+ Docs: https://prismic.io/docs/cli
48
+ `
49
+ : `Slice Machine is deprecated. The @slicemachine/init command is replaced by prismic init, which models content in the Type Builder:
50
+
51
+ ${prismicInit}
52
+
53
+ If someone asked for Slice Machine by name, tell them it is replaced before you continue.
19
54
 
20
- const currentVersion = process.version;
55
+ --force sets up a project with the deprecated Slice Machine. It is not recommended:
21
56
 
22
- if (!semver.satisfies(currentVersion, requiredVersion)) {
23
- console.warn(
24
- chalk.yellow(
25
- `⚠️ Warning: You are using Node.js ${currentVersion}, but this tool requires ${requiredVersion}.\n` +
26
- ` Some features may not work correctly. Please upgrade your Node.js version.\n`,
27
- ),
28
- );
57
+ ${slicemachineInit}
58
+
59
+ Confirm that is what you want before using it. If the choice is not yours, wait for an answer.
60
+
61
+ Working with an AI agent? Install the Prismic skill so it knows the current workflow:
62
+
63
+ npx skills add --global --yes prismicio/skills
64
+
65
+ Docs: https://prismic.io/docs/cli
66
+ Existing Slice Machine projects: https://prismic.io/docs/slice-machine
67
+ `,
68
+ );
69
+
70
+ try {
71
+ const manager = createSliceMachineManager();
72
+ await manager.telemetry.initTelemetry({
73
+ appName: pkg.name,
74
+ appVersion: pkg.version,
75
+ });
76
+ const tracked = manager.telemetry
77
+ .track({
78
+ event: "command:init:deprecation",
79
+ repository,
80
+ forced,
81
+ })
82
+ // A forced run does not await this, so it must handle its own
83
+ // rejection. An unhandled one would take the process down.
84
+ .catch(() => undefined);
85
+ // A forced run has the rest of the command to deliver the event.
86
+ if (!forced) {
87
+ await Promise.race([tracked, setTimeout(3000)]);
88
+ }
89
+ } catch {
90
+ // Telemetry never blocks the message.
91
+ }
92
+
93
+ if (!forced) {
94
+ process.exit(1);
29
95
  }
30
96
 
31
- import("../dist/cli.cjs");
97
+ // The CLI parses its own flags and rejects unknown ones, so hide `--force`.
98
+ process.argv = process.argv.filter(
99
+ (argument) => argument !== "--force" && !argument.startsWith("--force="),
100
+ );
101
+ await import("../dist/cli.cjs");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../../../_virtual/index18.cjs");
2
+ const index = require("../../../../_virtual/index17.cjs");
3
3
  require("./identifier.cjs");
4
4
  require("./keyword.cjs");
5
5
  const identifier = require("../../../../_virtual/identifier.cjs");
@@ -1,4 +1,4 @@
1
- import { __exports as lib } from "../../../../_virtual/index18.js";
1
+ import { __exports as lib } from "../../../../_virtual/index17.js";
2
2
  import "./identifier.js";
3
3
  import "./keyword.js";
4
4
  import { __exports as identifier } from "../../../../_virtual/identifier.js";
@@ -3,8 +3,8 @@ const index = require("../../../../_virtual/index13.cjs");
3
3
  require("../../../js-tokens/index.cjs");
4
4
  require("../../helper-validator-identifier/lib/index.cjs");
5
5
  const chalk = require("chalk");
6
- const index$1 = require("../../../../_virtual/index17.cjs");
7
- const index$2 = require("../../../../_virtual/index18.cjs");
6
+ const index$1 = require("../../../../_virtual/index16.cjs");
7
+ const index$2 = require("../../../../_virtual/index17.cjs");
8
8
  Object.defineProperty(index.__exports, "__esModule", {
9
9
  value: true
10
10
  });
@@ -2,8 +2,8 @@ import { __exports as lib } from "../../../../_virtual/index13.js";
2
2
  import "../../../js-tokens/index.js";
3
3
  import "../../helper-validator-identifier/lib/index.js";
4
4
  import chalk from "chalk";
5
- import { __exports as jsTokens } from "../../../../_virtual/index17.js";
6
- import { __exports as lib$1 } from "../../../../_virtual/index18.js";
5
+ import { __exports as jsTokens } from "../../../../_virtual/index16.js";
6
+ import { __exports as lib$1 } from "../../../../_virtual/index17.js";
7
7
  Object.defineProperty(lib, "__esModule", {
8
8
  value: true
9
9
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
3
- const index = require("../../_virtual/index5.cjs");
3
+ const index = require("../../_virtual/index7.cjs");
4
4
  const require$$0 = require("child_process");
5
5
  const parse$1 = require("./lib/parse.cjs");
6
6
  const enoent$1 = require("./lib/enoent.cjs");
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as crossSpawn$1 } from "../../_virtual/index5.js";
2
+ import { __module as crossSpawn$1 } from "../../_virtual/index7.js";
3
3
  import require$$0 from "child_process";
4
4
  import { p as parse_1 } from "./lib/parse.js";
5
5
  import { e as enoent$1 } from "./lib/enoent.js";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
3
- const index = require("../../_virtual/index7.cjs");
3
+ const index = require("../../_virtual/index5.cjs");
4
4
  const require$$0 = require("path");
5
5
  require("../path-type/index.cjs");
6
- const index$1 = require("../../_virtual/index8.cjs");
6
+ const index$1 = require("../../_virtual/index6.cjs");
7
7
  const path = require$$0;
8
8
  const pathType = index$1.__exports;
9
9
  const getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0];
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as dirGlob$1 } from "../../_virtual/index7.js";
2
+ import { __module as dirGlob$1 } from "../../_virtual/index5.js";
3
3
  import require$$0 from "path";
4
4
  import "../path-type/index.js";
5
- import { __exports as pathType$1 } from "../../_virtual/index8.js";
5
+ import { __exports as pathType$1 } from "../../_virtual/index6.js";
6
6
  const path = require$$0;
7
7
  const pathType = pathType$1;
8
8
  const getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0];
@@ -8,7 +8,7 @@ require("./providers/sync.cjs");
8
8
  require("./settings.cjs");
9
9
  require("./utils/index.cjs");
10
10
  const sync = require("../../../_virtual/sync.cjs");
11
- const index = require("../../../_virtual/index6.cjs");
11
+ const index = require("../../../_virtual/index4.cjs");
12
12
  const stream = require("../../../_virtual/stream.cjs");
13
13
  const patterns = require("../../../_virtual/patterns.cjs");
14
14
  const settings = require("../../../_virtual/settings.cjs");
@@ -7,7 +7,7 @@ import "./providers/sync.js";
7
7
  import "./settings.js";
8
8
  import "./utils/index.js";
9
9
  import { __exports as sync } from "../../../_virtual/sync.js";
10
- import { __exports as utils$1 } from "../../../_virtual/index6.js";
10
+ import { __exports as utils$1 } from "../../../_virtual/index4.js";
11
11
  import { __exports as stream } from "../../../_virtual/stream.js";
12
12
  import { __exports as patterns } from "../../../_virtual/patterns.js";
13
13
  import { __exports as settings } from "../../../_virtual/settings.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const tasks = require("../../../../_virtual/tasks.cjs");
3
3
  require("../utils/index.cjs");
4
- const index = require("../../../../_virtual/index6.cjs");
4
+ const index = require("../../../../_virtual/index4.cjs");
5
5
  Object.defineProperty(tasks.__exports, "__esModule", { value: true });
6
6
  tasks.__exports.convertPatternGroupToTask = tasks.__exports.convertPatternGroupsToTasks = tasks.__exports.groupPatternsByBaseDirectory = tasks.__exports.getNegativePatternsAsPositive = tasks.__exports.getPositivePatterns = tasks.__exports.convertPatternsToTasks = tasks.__exports.generate = void 0;
7
7
  const utils = index.__exports;
@@ -1,6 +1,6 @@
1
1
  import { __exports as tasks } from "../../../../_virtual/tasks.js";
2
2
  import "../utils/index.js";
3
- import { __exports as utils$1 } from "../../../../_virtual/index6.js";
3
+ import { __exports as utils$1 } from "../../../../_virtual/index4.js";
4
4
  Object.defineProperty(tasks, "__esModule", { value: true });
5
5
  tasks.convertPatternGroupToTask = tasks.convertPatternGroupsToTasks = tasks.groupPatternsByBaseDirectory = tasks.getNegativePatternsAsPositive = tasks.getPositivePatterns = tasks.convertPatternsToTasks = tasks.generate = void 0;
6
6
  const utils = utils$1;
@@ -3,7 +3,7 @@ const deep = require("../../../../../_virtual/deep.cjs");
3
3
  require("../../utils/index.cjs");
4
4
  require("../matchers/partial.cjs");
5
5
  const partial = require("../../../../../_virtual/partial.cjs");
6
- const index = require("../../../../../_virtual/index6.cjs");
6
+ const index = require("../../../../../_virtual/index4.cjs");
7
7
  Object.defineProperty(deep.__exports, "__esModule", { value: true });
8
8
  const utils = index.__exports;
9
9
  const partial_1 = partial.__exports;
@@ -2,7 +2,7 @@ import { __exports as deep } from "../../../../../_virtual/deep.js";
2
2
  import "../../utils/index.js";
3
3
  import "../matchers/partial.js";
4
4
  import { __exports as partial } from "../../../../../_virtual/partial.js";
5
- import { __exports as utils$1 } from "../../../../../_virtual/index6.js";
5
+ import { __exports as utils$1 } from "../../../../../_virtual/index4.js";
6
6
  Object.defineProperty(deep, "__esModule", { value: true });
7
7
  const utils = utils$1;
8
8
  const partial_1 = partial;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const entry = require("../../../../../_virtual/entry.cjs");
3
3
  require("../../utils/index.cjs");
4
- const index = require("../../../../../_virtual/index6.cjs");
4
+ const index = require("../../../../../_virtual/index4.cjs");
5
5
  Object.defineProperty(entry.__exports, "__esModule", { value: true });
6
6
  const utils = index.__exports;
7
7
  class EntryFilter {
@@ -1,6 +1,6 @@
1
1
  import { __exports as entry } from "../../../../../_virtual/entry.js";
2
2
  import "../../utils/index.js";
3
- import { __exports as utils$1 } from "../../../../../_virtual/index6.js";
3
+ import { __exports as utils$1 } from "../../../../../_virtual/index4.js";
4
4
  Object.defineProperty(entry, "__esModule", { value: true });
5
5
  const utils = utils$1;
6
6
  class EntryFilter {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const error = require("../../../../../_virtual/error.cjs");
3
3
  require("../../utils/index.cjs");
4
- const index = require("../../../../../_virtual/index6.cjs");
4
+ const index = require("../../../../../_virtual/index4.cjs");
5
5
  Object.defineProperty(error.__exports, "__esModule", { value: true });
6
6
  const utils = index.__exports;
7
7
  class ErrorFilter {
@@ -1,6 +1,6 @@
1
1
  import { __exports as error } from "../../../../../_virtual/error.js";
2
2
  import "../../utils/index.js";
3
- import { __exports as utils$1 } from "../../../../../_virtual/index6.js";
3
+ import { __exports as utils$1 } from "../../../../../_virtual/index4.js";
4
4
  Object.defineProperty(error, "__esModule", { value: true });
5
5
  const utils = utils$1;
6
6
  class ErrorFilter {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const matcher = require("../../../../../_virtual/matcher.cjs");
3
3
  require("../../utils/index.cjs");
4
- const index = require("../../../../../_virtual/index6.cjs");
4
+ const index = require("../../../../../_virtual/index4.cjs");
5
5
  Object.defineProperty(matcher.__exports, "__esModule", { value: true });
6
6
  const utils = index.__exports;
7
7
  class Matcher {
@@ -1,6 +1,6 @@
1
1
  import { __exports as matcher } from "../../../../../_virtual/matcher.js";
2
2
  import "../../utils/index.js";
3
- import { __exports as utils$1 } from "../../../../../_virtual/index6.js";
3
+ import { __exports as utils$1 } from "../../../../../_virtual/index4.js";
4
4
  Object.defineProperty(matcher, "__esModule", { value: true });
5
5
  const utils = utils$1;
6
6
  class Matcher {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const entry = require("../../../../../_virtual/entry2.cjs");
3
3
  require("../../utils/index.cjs");
4
- const index = require("../../../../../_virtual/index6.cjs");
4
+ const index = require("../../../../../_virtual/index4.cjs");
5
5
  Object.defineProperty(entry.__exports, "__esModule", { value: true });
6
6
  const utils = index.__exports;
7
7
  class EntryTransformer {
@@ -1,6 +1,6 @@
1
1
  import { __exports as entry } from "../../../../../_virtual/entry2.js";
2
2
  import "../../utils/index.js";
3
- import { __exports as utils$1 } from "../../../../../_virtual/index6.js";
3
+ import { __exports as utils$1 } from "../../../../../_virtual/index4.js";
4
4
  Object.defineProperty(entry, "__esModule", { value: true });
5
5
  const utils = utils$1;
6
6
  class EntryTransformer {
@@ -4,7 +4,7 @@ const require$$0 = require("path");
4
4
  require("../../../@nodelib/fs.stat/out/index.cjs");
5
5
  require("../utils/index.cjs");
6
6
  const index = require("../../../../_virtual/index15.cjs");
7
- const index$1 = require("../../../../_virtual/index6.cjs");
7
+ const index$1 = require("../../../../_virtual/index4.cjs");
8
8
  Object.defineProperty(reader.__exports, "__esModule", { value: true });
9
9
  const path = require$$0;
10
10
  const fsStat = index.__exports;
@@ -3,7 +3,7 @@ import require$$0 from "path";
3
3
  import "../../../@nodelib/fs.stat/out/index.js";
4
4
  import "../utils/index.js";
5
5
  import { __exports as out } from "../../../../_virtual/index15.js";
6
- import { __exports as utils$1 } from "../../../../_virtual/index6.js";
6
+ import { __exports as utils$1 } from "../../../../_virtual/index4.js";
7
7
  Object.defineProperty(reader, "__esModule", { value: true });
8
8
  const path = require$$0;
9
9
  const fsStat = out;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../../../_virtual/index6.cjs");
2
+ const index = require("../../../../_virtual/index4.cjs");
3
3
  require("./array.cjs");
4
4
  require("./errno.cjs");
5
5
  require("./fs.cjs");
@@ -1,4 +1,4 @@
1
- import { __exports as utils } from "../../../../_virtual/index6.js";
1
+ import { __exports as utils } from "../../../../_virtual/index4.js";
2
2
  import "./array.js";
3
3
  import "./errno.js";
4
4
  import "./fs.js";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../_virtual/index17.cjs");
2
+ const index = require("../../_virtual/index16.cjs");
3
3
  Object.defineProperty(index.__exports, "__esModule", {
4
4
  value: true
5
5
  });
@@ -1,4 +1,4 @@
1
- import { __exports as jsTokens } from "../../_virtual/index17.js";
1
+ import { __exports as jsTokens } from "../../_virtual/index16.js";
2
2
  Object.defineProperty(jsTokens, "__esModule", {
3
3
  value: true
4
4
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index$1 = require("../../../../../_virtual/index4.cjs");
3
+ const index$1 = require("../../../../../_virtual/index8.cjs");
4
4
  const gitHostInfo = require("./git-host-info.cjs");
5
5
  const gitHost = require("./git-host.cjs");
6
6
  const index = require('./../_node_modules/lru-cache/index.cjs');
@@ -1,4 +1,4 @@
1
- import { __module as lib } from "../../../../../_virtual/index4.js";
1
+ import { __module as lib } from "../../../../../_virtual/index8.js";
2
2
  import { g as gitHostInfo } from "./git-host-info.js";
3
3
  import { g as gitHost } from "./git-host.js";
4
4
  import { l as lruCache } from './../_node_modules/lru-cache/index.js';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../_virtual/index8.cjs");
2
+ const index = require("../../_virtual/index6.cjs");
3
3
  const require$$0 = require("util");
4
4
  const require$$0$1 = require("fs");
5
5
  const { promisify } = require$$0;
@@ -1,4 +1,4 @@
1
- import { __exports as pathType } from "../../_virtual/index8.js";
1
+ import { __exports as pathType } from "../../_virtual/index6.js";
2
2
  import require$$0 from "util";
3
3
  import require$$0$1 from "fs";
4
4
  const { promisify } = require$$0;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index$1 = require("../../../../_virtual/index16.cjs");
3
+ const index$1 = require("../../../../_virtual/index18.cjs");
4
4
  const require$$0 = require("url");
5
5
  const gitHostInfo = require("./git-host-info.cjs");
6
6
  const gitHost = require("./git-host.cjs");
@@ -1,4 +1,4 @@
1
- import { __module as hostedGitInfo } from "../../../../_virtual/index16.js";
1
+ import { __module as hostedGitInfo } from "../../../../_virtual/index18.js";
2
2
  import require$$0 from "url";
3
3
  import { g as gitHostInfo } from "./git-host-info.js";
4
4
  import { g as gitHost } from "./git-host.js";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var hostedGitInfo = { exports: {} };
4
- exports.__module = hostedGitInfo;
3
+ var jsTokens = {};
4
+ exports.__exports = jsTokens;
5
5
  //# sourceMappingURL=index16.cjs.map
@@ -1,5 +1,5 @@
1
- var hostedGitInfo = { exports: {} };
1
+ var jsTokens = {};
2
2
  export {
3
- hostedGitInfo as __module
3
+ jsTokens as __exports
4
4
  };
5
5
  //# sourceMappingURL=index16.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var jsTokens = {};
4
- exports.__exports = jsTokens;
3
+ var lib = {};
4
+ exports.__exports = lib;
5
5
  //# sourceMappingURL=index17.cjs.map
@@ -1,5 +1,5 @@
1
- var jsTokens = {};
1
+ var lib = {};
2
2
  export {
3
- jsTokens as __exports
3
+ lib as __exports
4
4
  };
5
5
  //# sourceMappingURL=index17.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var lib = {};
4
- exports.__exports = lib;
3
+ var hostedGitInfo = { exports: {} };
4
+ exports.__module = hostedGitInfo;
5
5
  //# sourceMappingURL=index18.cjs.map
@@ -1,5 +1,5 @@
1
- var lib = {};
1
+ var hostedGitInfo = { exports: {} };
2
2
  export {
3
- lib as __exports
3
+ hostedGitInfo as __module
4
4
  };
5
5
  //# sourceMappingURL=index18.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var lib = { exports: {} };
4
- exports.__module = lib;
3
+ var utils = {};
4
+ exports.__exports = utils;
5
5
  //# sourceMappingURL=index4.cjs.map
@@ -1,5 +1,5 @@
1
- var lib = { exports: {} };
1
+ var utils = {};
2
2
  export {
3
- lib as __module
3
+ utils as __exports
4
4
  };
5
5
  //# sourceMappingURL=index4.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var crossSpawn = { exports: {} };
4
- exports.__module = crossSpawn;
3
+ var dirGlob = { exports: {} };
4
+ exports.__module = dirGlob;
5
5
  //# sourceMappingURL=index5.cjs.map
@@ -1,5 +1,5 @@
1
- var crossSpawn = { exports: {} };
1
+ var dirGlob = { exports: {} };
2
2
  export {
3
- crossSpawn as __module
3
+ dirGlob as __module
4
4
  };
5
5
  //# sourceMappingURL=index5.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var utils = {};
4
- exports.__exports = utils;
3
+ var pathType = {};
4
+ exports.__exports = pathType;
5
5
  //# sourceMappingURL=index6.cjs.map
@@ -1,5 +1,5 @@
1
- var utils = {};
1
+ var pathType = {};
2
2
  export {
3
- utils as __exports
3
+ pathType as __exports
4
4
  };
5
5
  //# sourceMappingURL=index6.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var dirGlob = { exports: {} };
4
- exports.__module = dirGlob;
3
+ var crossSpawn = { exports: {} };
4
+ exports.__module = crossSpawn;
5
5
  //# sourceMappingURL=index7.cjs.map
@@ -1,5 +1,5 @@
1
- var dirGlob = { exports: {} };
1
+ var crossSpawn = { exports: {} };
2
2
  export {
3
- dirGlob as __module
3
+ crossSpawn as __module
4
4
  };
5
5
  //# sourceMappingURL=index7.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var pathType = {};
4
- exports.__exports = pathType;
3
+ var lib = { exports: {} };
4
+ exports.__module = lib;
5
5
  //# sourceMappingURL=index8.cjs.map
@@ -1,5 +1,5 @@
1
- var pathType = {};
1
+ var lib = { exports: {} };
2
2
  export {
3
- pathType as __exports
3
+ lib as __module
4
4
  };
5
5
  //# sourceMappingURL=index8.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const name = "@slicemachine/init";
4
- const version = "2.10.56";
4
+ const version = "2.10.58-beta.1";
5
5
  const description = "Init Prismic Slice Machine in your project";
6
6
  const keywords = [
7
7
  "typescript",
@@ -101,6 +101,7 @@ const engines = {
101
101
  const publishConfig = {
102
102
  access: "public"
103
103
  };
104
+ const stableVersion = "2.10.57";
104
105
  const pkg = {
105
106
  name,
106
107
  version,
@@ -120,7 +121,8 @@ const pkg = {
120
121
  dependencies,
121
122
  devDependencies,
122
123
  engines,
123
- publishConfig
124
+ publishConfig,
125
+ stableVersion
124
126
  };
125
127
  exports.author = author;
126
128
  exports.bin = bin;
@@ -139,6 +141,7 @@ exports.name = name;
139
141
  exports.publishConfig = publishConfig;
140
142
  exports.repository = repository;
141
143
  exports.scripts = scripts;
144
+ exports.stableVersion = stableVersion;
142
145
  exports.type = type;
143
146
  exports.types = types;
144
147
  exports.version = version;
@@ -1 +1 @@
1
- {"version":3,"file":"package.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"package.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  const name = "@slicemachine/init";
2
- const version = "2.10.56";
2
+ const version = "2.10.58-beta.1";
3
3
  const description = "Init Prismic Slice Machine in your project";
4
4
  const keywords = [
5
5
  "typescript",
@@ -99,6 +99,7 @@ const engines = {
99
99
  const publishConfig = {
100
100
  access: "public"
101
101
  };
102
+ const stableVersion = "2.10.57";
102
103
  const pkg = {
103
104
  name,
104
105
  version,
@@ -118,7 +119,8 @@ const pkg = {
118
119
  dependencies,
119
120
  devDependencies,
120
121
  engines,
121
- publishConfig
122
+ publishConfig,
123
+ stableVersion
122
124
  };
123
125
  export {
124
126
  author,
@@ -138,6 +140,7 @@ export {
138
140
  publishConfig,
139
141
  repository,
140
142
  scripts,
143
+ stableVersion,
141
144
  type,
142
145
  types,
143
146
  version
@@ -1 +1 @@
1
- {"version":3,"file":"package.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"package.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/init",
3
- "version": "2.10.56",
3
+ "version": "2.10.58-beta.1",
4
4
  "description": "Init Prismic Slice Machine in your project",
5
5
  "keywords": [
6
6
  "typescript",
@@ -54,7 +54,7 @@
54
54
  "@antfu/ni": "^0.20.0",
55
55
  "@lihbr/listr-update-renderer": "^0.5.3",
56
56
  "@sentry/node": "^7.116.0",
57
- "@slicemachine/manager": "0.27.5",
57
+ "@slicemachine/manager": "0.27.7-beta.1",
58
58
  "chalk": "^4.1.2",
59
59
  "giget": "^1.1.2",
60
60
  "globby": "^13.1.3",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@size-limit/preset-small-lib": "8.2.4",
71
- "@slicemachine/plugin-kit": "0.4.97",
71
+ "@slicemachine/plugin-kit": "0.4.99-beta.1",
72
72
  "@types/listr": "0.14.4",
73
73
  "@types/prompts": "2.4.3",
74
74
  "@types/semver": "7.3.13",
@@ -99,5 +99,6 @@
99
99
  },
100
100
  "publishConfig": {
101
101
  "access": "public"
102
- }
102
+ },
103
+ "stableVersion": "2.10.57"
103
104
  }