@slicemachine/init 0.1.1-dev-plugins-m3.6 → 0.1.1-dev-plugins-m3.7

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 (108) hide show
  1. package/dist/SliceMachineInitProcess.cjs +14 -6
  2. package/dist/SliceMachineInitProcess.cjs.map +1 -1
  3. package/dist/SliceMachineInitProcess.js +14 -6
  4. package/dist/SliceMachineInitProcess.js.map +1 -1
  5. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +1 -1
  6. package/dist/_node_modules/@babel/code-frame/lib/index.js +1 -1
  7. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
  8. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
  9. package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
  10. package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
  11. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
  12. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
  13. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
  14. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
  15. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
  16. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
  17. package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
  18. package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
  19. package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
  20. package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
  21. package/dist/_node_modules/camelcase-keys/index.cjs +1 -1
  22. package/dist/_node_modules/camelcase-keys/index.js +1 -1
  23. package/dist/_node_modules/dir-glob/index.cjs +2 -2
  24. package/dist/_node_modules/dir-glob/index.js +2 -2
  25. package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
  26. package/dist/_node_modules/fast-glob/out/index.js +1 -1
  27. package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
  28. package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
  29. package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
  30. package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
  31. package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
  32. package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
  33. package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
  34. package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
  35. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
  36. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
  37. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
  38. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
  39. package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
  40. package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
  41. package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
  42. package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
  43. package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
  44. package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
  45. package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
  46. package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
  47. package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
  48. package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
  49. package/dist/_node_modules/js-tokens/index.cjs +1 -1
  50. package/dist/_node_modules/js-tokens/index.js +1 -1
  51. package/dist/_node_modules/map-obj/index.cjs +1 -1
  52. package/dist/_node_modules/map-obj/index.js +1 -1
  53. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
  54. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +1 -1
  55. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
  56. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +1 -1
  57. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
  58. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
  59. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
  60. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +1 -1
  61. package/dist/_node_modules/micromatch/index.cjs +1 -1
  62. package/dist/_node_modules/micromatch/index.js +1 -1
  63. package/dist/_node_modules/path-type/index.cjs +1 -1
  64. package/dist/_node_modules/path-type/index.js +1 -1
  65. package/dist/_node_modules/picomatch/index.cjs +1 -1
  66. package/dist/_node_modules/picomatch/index.js +1 -1
  67. package/dist/_virtual/index10.cjs +2 -2
  68. package/dist/_virtual/index10.js +2 -2
  69. package/dist/_virtual/index11.cjs +2 -10
  70. package/dist/_virtual/index11.cjs.map +1 -1
  71. package/dist/_virtual/index11.js +2 -11
  72. package/dist/_virtual/index11.js.map +1 -1
  73. package/dist/_virtual/index12.cjs +2 -2
  74. package/dist/_virtual/index12.js +2 -2
  75. package/dist/_virtual/index13.cjs +10 -2
  76. package/dist/_virtual/index13.cjs.map +1 -1
  77. package/dist/_virtual/index13.js +11 -2
  78. package/dist/_virtual/index13.js.map +1 -1
  79. package/dist/_virtual/index14.cjs +10 -2
  80. package/dist/_virtual/index14.cjs.map +1 -1
  81. package/dist/_virtual/index14.js +11 -2
  82. package/dist/_virtual/index14.js.map +1 -1
  83. package/dist/_virtual/index15.cjs +2 -2
  84. package/dist/_virtual/index15.js +2 -2
  85. package/dist/_virtual/index16.cjs +2 -10
  86. package/dist/_virtual/index16.cjs.map +1 -1
  87. package/dist/_virtual/index16.js +2 -11
  88. package/dist/_virtual/index16.js.map +1 -1
  89. package/dist/_virtual/index3.cjs +2 -2
  90. package/dist/_virtual/index3.js +6 -6
  91. package/dist/_virtual/index4.cjs +2 -2
  92. package/dist/_virtual/index4.js +6 -6
  93. package/dist/_virtual/index5.cjs +2 -10
  94. package/dist/_virtual/index5.cjs.map +1 -1
  95. package/dist/_virtual/index5.js +2 -11
  96. package/dist/_virtual/index5.js.map +1 -1
  97. package/dist/_virtual/index6.cjs +2 -2
  98. package/dist/_virtual/index6.js +2 -2
  99. package/dist/_virtual/index7.cjs +10 -2
  100. package/dist/_virtual/index7.cjs.map +1 -1
  101. package/dist/_virtual/index7.js +11 -2
  102. package/dist/_virtual/index7.js.map +1 -1
  103. package/dist/packages/init/_node_modules/globby/index.cjs +1 -1
  104. package/dist/packages/init/_node_modules/globby/index.js +1 -1
  105. package/dist/packages/init/package.json.cjs +4 -4
  106. package/dist/packages/init/package.json.js +4 -4
  107. package/package.json +4 -4
  108. package/src/SliceMachineInitProcess.ts +22 -6
@@ -1 +1 @@
1
- {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -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,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var pathType = {};
4
- exports.__exports = pathType;
3
+ exports.exports = {};
4
+ var lib = {
5
+ get exports() {
6
+ return exports.exports;
7
+ },
8
+ set exports(v) {
9
+ exports.exports = v;
10
+ }
11
+ };
12
+ exports.__module = lib;
5
13
  //# sourceMappingURL=index7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index7.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index7.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,5 +1,14 @@
1
- var pathType = {};
1
+ var libExports = {};
2
+ var lib = {
3
+ get exports() {
4
+ return libExports;
5
+ },
6
+ set exports(v) {
7
+ libExports = v;
8
+ }
9
+ };
2
10
  export {
3
- pathType as __exports
11
+ lib as __module,
12
+ libExports as exports
4
13
  };
5
14
  //# sourceMappingURL=index7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -7,7 +7,7 @@ const index = require('./../../../../_node_modules/fast-glob/out/index.cjs');
7
7
  require('./../../../../_node_modules/dir-glob/index.cjs');
8
8
  const ignore = require("./ignore.cjs");
9
9
  const utilities = require("./utilities.cjs");
10
- const index$1 = require("../../../../_virtual/index4.cjs");
10
+ const index$1 = require("../../../../_virtual/index3.cjs");
11
11
  const assertPatternsInput = (patterns) => {
12
12
  if (patterns.some((pattern) => typeof pattern !== "string")) {
13
13
  throw new TypeError("Patterns must be a string or an array of strings");
@@ -5,7 +5,7 @@ import out from './../../../../_node_modules/fast-glob/out/index.js';
5
5
  import './../../../../_node_modules/dir-glob/index.js';
6
6
  import { isIgnoredByIgnoreFiles, GITIGNORE_FILES_PATTERN } from "./ignore.js";
7
7
  import { toPath, isNegativePattern } from "./utilities.js";
8
- import { exports as dirGlobExports } from "../../../../_virtual/index4.js";
8
+ import { exports as dirGlobExports } from "../../../../_virtual/index3.js";
9
9
  const assertPatternsInput = (patterns) => {
10
10
  if (patterns.some((pattern) => typeof pattern !== "string")) {
11
11
  throw new TypeError("Patterns must be a string or an array of strings");
@@ -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 = "0.1.1-dev-plugins-m3.6";
4
+ const version = "0.1.1-dev-plugins-m3.7";
5
5
  const description = "Init Prismic Slice Machine in your project";
6
6
  const keywords = [
7
7
  "typescript",
@@ -54,7 +54,7 @@ const scripts = {
54
54
  const dependencies = {
55
55
  "@antfu/ni": "^0.20.0",
56
56
  "@lihbr/listr-update-renderer": "^0.5.3",
57
- "@slicemachine/manager": "0.1.1-dev-plugins-m3.6",
57
+ "@slicemachine/manager": "0.1.1-dev-plugins-m3.7",
58
58
  chalk: "^4.1.2",
59
59
  globby: "^13.1.3",
60
60
  listr: "^0.14.3",
@@ -66,7 +66,7 @@ const dependencies = {
66
66
  };
67
67
  const devDependencies = {
68
68
  "@size-limit/preset-small-lib": "^8.2.4",
69
- "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.6",
69
+ "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.7",
70
70
  "@types/listr": "^0.14.4",
71
71
  "@types/prompts": "^2.4.3",
72
72
  "@types/semver": "^7.3.13",
@@ -92,7 +92,7 @@ const devDependencies = {
92
92
  "vite-plugin-sdk": "^0.1.1",
93
93
  vitest: "^0.27.3"
94
94
  };
95
- const gitHead = "57068fd7573702d796935ae687c6c0e5419c0603";
95
+ const gitHead = "04283817af2c7cbdc28a84ad30142a4da3a64a37";
96
96
  const pkg = {
97
97
  name,
98
98
  version,
@@ -1,5 +1,5 @@
1
1
  const name = "@slicemachine/init";
2
- const version = "0.1.1-dev-plugins-m3.6";
2
+ const version = "0.1.1-dev-plugins-m3.7";
3
3
  const description = "Init Prismic Slice Machine in your project";
4
4
  const keywords = [
5
5
  "typescript",
@@ -52,7 +52,7 @@ const scripts = {
52
52
  const dependencies = {
53
53
  "@antfu/ni": "^0.20.0",
54
54
  "@lihbr/listr-update-renderer": "^0.5.3",
55
- "@slicemachine/manager": "0.1.1-dev-plugins-m3.6",
55
+ "@slicemachine/manager": "0.1.1-dev-plugins-m3.7",
56
56
  chalk: "^4.1.2",
57
57
  globby: "^13.1.3",
58
58
  listr: "^0.14.3",
@@ -64,7 +64,7 @@ const dependencies = {
64
64
  };
65
65
  const devDependencies = {
66
66
  "@size-limit/preset-small-lib": "^8.2.4",
67
- "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.6",
67
+ "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.7",
68
68
  "@types/listr": "^0.14.4",
69
69
  "@types/prompts": "^2.4.3",
70
70
  "@types/semver": "^7.3.13",
@@ -90,7 +90,7 @@ const devDependencies = {
90
90
  "vite-plugin-sdk": "^0.1.1",
91
91
  vitest: "^0.27.3"
92
92
  };
93
- const gitHead = "57068fd7573702d796935ae687c6c0e5419c0603";
93
+ const gitHead = "04283817af2c7cbdc28a84ad30142a4da3a64a37";
94
94
  const pkg = {
95
95
  name,
96
96
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/init",
3
- "version": "0.1.1-dev-plugins-m3.6",
3
+ "version": "0.1.1-dev-plugins-m3.7",
4
4
  "description": "Init Prismic Slice Machine in your project",
5
5
  "keywords": [
6
6
  "typescript",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "@antfu/ni": "^0.20.0",
55
55
  "@lihbr/listr-update-renderer": "^0.5.3",
56
- "@slicemachine/manager": "0.1.1-dev-plugins-m3.6",
56
+ "@slicemachine/manager": "0.1.1-dev-plugins-m3.7",
57
57
  "chalk": "^4.1.2",
58
58
  "globby": "^13.1.3",
59
59
  "listr": "^0.14.3",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@size-limit/preset-small-lib": "^8.2.4",
68
- "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.6",
68
+ "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.7",
69
69
  "@types/listr": "^0.14.4",
70
70
  "@types/prompts": "^2.4.3",
71
71
  "@types/semver": "^7.3.13",
@@ -91,5 +91,5 @@
91
91
  "vite-plugin-sdk": "^0.1.1",
92
92
  "vitest": "^0.27.3"
93
93
  },
94
- "gitHead": "57068fd7573702d796935ae687c6c0e5419c0603"
94
+ "gitHead": "04283817af2c7cbdc28a84ad30142a4da3a64a37"
95
95
  }
@@ -190,7 +190,7 @@ export class SliceMachineInitProcess {
190
190
  Getting help ${chalk.cyan("https://community.prismic.io")}
191
191
 
192
192
  GETTING STARTED
193
- Start Slice Machine ${chalk.cyan(
193
+ Run Slice Machine ${chalk.cyan(
194
194
  this.context.projectInitialization?.patchedScript
195
195
  ? await getRunScriptCommand({
196
196
  agent: this.context.packageManager || "npm",
@@ -200,6 +200,12 @@ export class SliceMachineInitProcess {
200
200
  agent: this.context.packageManager || "npm",
201
201
  script: "start-slicemachine",
202
202
  }),
203
+ )}
204
+ Run your project ${chalk.cyan(
205
+ await getRunScriptCommand({
206
+ agent: this.context.packageManager || "npm",
207
+ script: "dev",
208
+ }),
203
209
  )}`);
204
210
  } catch {
205
211
  // Noop, it's only the final convenience messsage
@@ -790,11 +796,17 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
790
796
 
791
797
  return listr([
792
798
  {
793
- title: "Starting plugin runner...",
799
+ // TODO: Revert when plugin are introduced to users
800
+ // title: "Starting plugin runner...",
801
+ title: "Loading adapter...",
794
802
  task: async (_, task) => {
795
803
  await this.manager.plugins.initPlugins();
796
- task.title = "Started plugin runner";
797
- parentTask.title = `${parentTask.title} and started plugin runner`;
804
+ // TODO: Revert when plugin are introduced to users
805
+ // task.title = "Started plugin runner";
806
+ task.title = "Loaded adapter";
807
+ // TODO: Revert when plugin are introduced to users
808
+ // parentTask.title = `${parentTask.title} and started plugin runner`;
809
+ parentTask.title = `${parentTask.title} and loaded adapter`;
798
810
  },
799
811
  },
800
812
  ]);
@@ -1076,7 +1088,9 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
1076
1088
  protected initializePlugins(): Promise<void> {
1077
1089
  return listrRun([
1078
1090
  {
1079
- title: "Initializing plugins...",
1091
+ // TODO: Revert when plugin are introduced to users
1092
+ // title: "Initializing plugins...",
1093
+ title: "Initializing adapter...",
1080
1094
  task: async (_, task) => {
1081
1095
  const updateOutput = (data: Buffer | string | null) => {
1082
1096
  if (data instanceof Buffer) {
@@ -1090,7 +1104,9 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
1090
1104
  log: updateOutput,
1091
1105
  });
1092
1106
 
1093
- task.title = "Initialized plugins";
1107
+ // TODO: Revert when plugin are introduced to users
1108
+ // task.title = "Initialized plugins";
1109
+ task.title = "Initialized adapter";
1094
1110
  },
1095
1111
  },
1096
1112
  ]);