@slicemachine/init 2.10.17 β 2.10.18-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.
- package/dist/SliceMachineInitProcess.cjs +3 -5
- package/dist/SliceMachineInitProcess.cjs.map +1 -1
- package/dist/SliceMachineInitProcess.d.ts +1 -1
- package/dist/SliceMachineInitProcess.js +3 -5
- package/dist/SliceMachineInitProcess.js.map +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
- package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
- package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_node_modules/dir-glob/index.cjs +2 -2
- package/dist/_node_modules/dir-glob/index.js +2 -2
- package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/index.js +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
- package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
- package/dist/_node_modules/get-stream/index.cjs +1 -1
- package/dist/_node_modules/get-stream/index.js +1 -1
- package/dist/_node_modules/js-tokens/index.cjs +1 -1
- package/dist/_node_modules/js-tokens/index.js +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
- package/dist/_node_modules/map-obj/index.cjs +1 -1
- package/dist/_node_modules/map-obj/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
- package/dist/_node_modules/parse-json/index.cjs +2 -2
- package/dist/_node_modules/parse-json/index.js +2 -2
- package/dist/_node_modules/path-key/index.cjs +1 -1
- package/dist/_node_modules/path-key/index.js +1 -1
- package/dist/_node_modules/path-type/index.cjs +1 -1
- package/dist/_node_modules/path-type/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +1 -1
- package/dist/_node_modules/signal-exit/index.js +1 -1
- package/dist/_virtual/index11.cjs +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.cjs +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.cjs +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.cjs +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.cjs +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index17.cjs +2 -2
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index18.cjs +2 -2
- package/dist/_virtual/index18.js +2 -2
- package/dist/_virtual/index19.cjs +2 -2
- package/dist/_virtual/index19.js +2 -2
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.cjs +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.cjs +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.cjs +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.cjs +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.cjs +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/packages/init/package.json.cjs +5 -2
- package/dist/packages/init/package.json.cjs.map +1 -1
- package/dist/packages/init/package.json.js +5 -2
- package/dist/packages/init/package.json.js.map +1 -1
- package/package.json +5 -4
- package/src/SliceMachineInitProcess.ts +9 -14
package/dist/_virtual/index8.cjs
CHANGED
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.cjs
CHANGED
package/dist/_virtual/index9.js
CHANGED
|
@@ -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.
|
|
4
|
+
const version = "2.10.18-beta.1";
|
|
5
5
|
const description = "Init Prismic Slice Machine in your project";
|
|
6
6
|
const keywords = [
|
|
7
7
|
"typescript",
|
|
@@ -98,6 +98,7 @@ const devDependencies = {
|
|
|
98
98
|
const publishConfig = {
|
|
99
99
|
access: "public"
|
|
100
100
|
};
|
|
101
|
+
const stableVersion = "2.10.17";
|
|
101
102
|
const pkg = {
|
|
102
103
|
name,
|
|
103
104
|
version,
|
|
@@ -116,7 +117,8 @@ const pkg = {
|
|
|
116
117
|
scripts,
|
|
117
118
|
dependencies,
|
|
118
119
|
devDependencies,
|
|
119
|
-
publishConfig
|
|
120
|
+
publishConfig,
|
|
121
|
+
stableVersion
|
|
120
122
|
};
|
|
121
123
|
exports.author = author;
|
|
122
124
|
exports.bin = bin;
|
|
@@ -134,6 +136,7 @@ exports.name = name;
|
|
|
134
136
|
exports.publishConfig = publishConfig;
|
|
135
137
|
exports.repository = repository;
|
|
136
138
|
exports.scripts = scripts;
|
|
139
|
+
exports.stableVersion = stableVersion;
|
|
137
140
|
exports.type = type;
|
|
138
141
|
exports.types = types;
|
|
139
142
|
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.
|
|
2
|
+
const version = "2.10.18-beta.1";
|
|
3
3
|
const description = "Init Prismic Slice Machine in your project";
|
|
4
4
|
const keywords = [
|
|
5
5
|
"typescript",
|
|
@@ -96,6 +96,7 @@ const devDependencies = {
|
|
|
96
96
|
const publishConfig = {
|
|
97
97
|
access: "public"
|
|
98
98
|
};
|
|
99
|
+
const stableVersion = "2.10.17";
|
|
99
100
|
const pkg = {
|
|
100
101
|
name,
|
|
101
102
|
version,
|
|
@@ -114,7 +115,8 @@ const pkg = {
|
|
|
114
115
|
scripts,
|
|
115
116
|
dependencies,
|
|
116
117
|
devDependencies,
|
|
117
|
-
publishConfig
|
|
118
|
+
publishConfig,
|
|
119
|
+
stableVersion
|
|
118
120
|
};
|
|
119
121
|
export {
|
|
120
122
|
author,
|
|
@@ -133,6 +135,7 @@ export {
|
|
|
133
135
|
publishConfig,
|
|
134
136
|
repository,
|
|
135
137
|
scripts,
|
|
138
|
+
stableVersion,
|
|
136
139
|
type,
|
|
137
140
|
types,
|
|
138
141
|
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.
|
|
3
|
+
"version": "2.10.18-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.23.
|
|
57
|
+
"@slicemachine/manager": "0.23.1-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.
|
|
71
|
+
"@slicemachine/plugin-kit": "0.4.61-beta.1",
|
|
72
72
|
"@types/listr": "0.14.4",
|
|
73
73
|
"@types/prompts": "2.4.3",
|
|
74
74
|
"@types/semver": "7.3.13",
|
|
@@ -96,5 +96,6 @@
|
|
|
96
96
|
},
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
|
-
}
|
|
99
|
+
},
|
|
100
|
+
"stableVersion": "2.10.17"
|
|
100
101
|
}
|
|
@@ -190,6 +190,7 @@ export class SliceMachineInitProcess {
|
|
|
190
190
|
await this.syncDataWithPrismic();
|
|
191
191
|
await this.initializeProject();
|
|
192
192
|
await this.initializePlugins();
|
|
193
|
+
await this.completeOnboardingSteps();
|
|
193
194
|
} catch (error) {
|
|
194
195
|
await this.trackError(error);
|
|
195
196
|
|
|
@@ -893,19 +894,24 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
893
894
|
};
|
|
894
895
|
}
|
|
895
896
|
|
|
896
|
-
protected async completeOnboardingSteps(
|
|
897
|
+
protected async completeOnboardingSteps(): Promise<void> {
|
|
897
898
|
try {
|
|
898
899
|
const { value: onboardingExperimentVariant } =
|
|
899
900
|
(await this.manager.telemetry.getExperimentVariant(
|
|
900
901
|
"shared-onboarding",
|
|
901
902
|
)) ?? {};
|
|
902
903
|
if (onboardingExperimentVariant === "with-shared-onboarding") {
|
|
903
|
-
this.manager.prismicRepository.completeOnboardingStep(
|
|
904
|
+
this.manager.prismicRepository.completeOnboardingStep(
|
|
905
|
+
"chooseLocale",
|
|
906
|
+
"createProject",
|
|
907
|
+
"setupSliceMachine",
|
|
908
|
+
);
|
|
904
909
|
}
|
|
905
910
|
} catch (error) {
|
|
906
911
|
await this.trackError(error);
|
|
907
912
|
}
|
|
908
913
|
}
|
|
914
|
+
|
|
909
915
|
protected createNewRepository(): Promise<void> {
|
|
910
916
|
assertExists(
|
|
911
917
|
this.context.repository,
|
|
@@ -933,11 +939,6 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
933
939
|
framework: this.context.framework.wroomTelemetryID,
|
|
934
940
|
starterId: this.context.starterId,
|
|
935
941
|
});
|
|
936
|
-
|
|
937
|
-
await this.completeOnboardingSteps(
|
|
938
|
-
"createProject",
|
|
939
|
-
"setupSliceMachine",
|
|
940
|
-
);
|
|
941
942
|
} catch (error) {
|
|
942
943
|
// When we have an error here, it's most probably because the user has a stale SESSION cookie
|
|
943
944
|
|
|
@@ -973,11 +974,7 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
973
974
|
const documentsRead = await this.readDocuments();
|
|
974
975
|
|
|
975
976
|
if (documentsRead !== undefined && documentsRead.documents.length > 0) {
|
|
976
|
-
// if there are documents to push, we assume it's a starter which
|
|
977
|
-
// has a master locale already set, and we only ensure the onboarding
|
|
978
|
-
// step is completed.
|
|
979
|
-
await this.completeOnboardingSteps("chooseLocale");
|
|
980
|
-
|
|
977
|
+
// if there are documents to push, we assume it's a starter which has a master locale already set
|
|
981
978
|
return;
|
|
982
979
|
}
|
|
983
980
|
|
|
@@ -989,8 +986,6 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
989
986
|
task.title = `Main content language set to ${chalk.cyan(
|
|
990
987
|
"English - United States",
|
|
991
988
|
)} πΊπΈ. You can change it anytime in your project settings.`;
|
|
992
|
-
|
|
993
|
-
await this.completeOnboardingSteps("chooseLocale");
|
|
994
989
|
},
|
|
995
990
|
},
|
|
996
991
|
]);
|