@slicemachine/init 2.4.4-dev-next-release.1 → 2.5.0
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 +6 -4
- package/dist/SliceMachineInitProcess.cjs.map +1 -1
- package/dist/SliceMachineInitProcess.js +6 -4
- 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/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/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-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/index10.cjs +2 -2
- package/dist/_virtual/index10.js +2 -2
- 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/index14.cjs +2 -2
- package/dist/_virtual/index14.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/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 -5
- package/dist/packages/init/package.json.js +5 -5
- package/package.json +5 -5
- package/src/SliceMachineInitProcess.ts +8 -4
|
@@ -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.
|
|
4
|
+
const version = "2.5.0";
|
|
5
5
|
const description = "Init Prismic Slice Machine in your project";
|
|
6
6
|
const keywords = [
|
|
7
7
|
"typescript",
|
|
@@ -42,7 +42,7 @@ const scripts = {
|
|
|
42
42
|
dev: "vite build --watch",
|
|
43
43
|
format: "prettier --write .",
|
|
44
44
|
lint: "eslint --max-warnings 0 --ext .js,.ts .",
|
|
45
|
-
prepack: "
|
|
45
|
+
prepack: "npm run build",
|
|
46
46
|
size: "size-limit",
|
|
47
47
|
test: "yarn lint && yarn types && yarn unit && yarn build && yarn size",
|
|
48
48
|
types: "tsc --noEmit",
|
|
@@ -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.9.2
|
|
57
|
+
"@slicemachine/manager": "^0.9.2",
|
|
58
58
|
chalk: "^4.1.2",
|
|
59
59
|
giget: "^1.1.2",
|
|
60
60
|
globby: "^13.1.3",
|
|
@@ -67,7 +67,7 @@ const dependencies = {
|
|
|
67
67
|
};
|
|
68
68
|
const devDependencies = {
|
|
69
69
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
70
|
-
"@slicemachine/plugin-kit": "0.4.12
|
|
70
|
+
"@slicemachine/plugin-kit": "0.4.12",
|
|
71
71
|
"@types/listr": "0.14.4",
|
|
72
72
|
"@types/prompts": "2.4.3",
|
|
73
73
|
"@types/semver": "7.3.13",
|
|
@@ -93,7 +93,7 @@ const devDependencies = {
|
|
|
93
93
|
"vite-plugin-sdk": "0.1.1",
|
|
94
94
|
vitest: "0.32.0"
|
|
95
95
|
};
|
|
96
|
-
const gitHead = "
|
|
96
|
+
const gitHead = "cef4530270d138738c8d5f8843efd26551da6688";
|
|
97
97
|
const pkg = {
|
|
98
98
|
name,
|
|
99
99
|
version,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@slicemachine/init";
|
|
2
|
-
const version = "2.
|
|
2
|
+
const version = "2.5.0";
|
|
3
3
|
const description = "Init Prismic Slice Machine in your project";
|
|
4
4
|
const keywords = [
|
|
5
5
|
"typescript",
|
|
@@ -40,7 +40,7 @@ const scripts = {
|
|
|
40
40
|
dev: "vite build --watch",
|
|
41
41
|
format: "prettier --write .",
|
|
42
42
|
lint: "eslint --max-warnings 0 --ext .js,.ts .",
|
|
43
|
-
prepack: "
|
|
43
|
+
prepack: "npm run build",
|
|
44
44
|
size: "size-limit",
|
|
45
45
|
test: "yarn lint && yarn types && yarn unit && yarn build && yarn size",
|
|
46
46
|
types: "tsc --noEmit",
|
|
@@ -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.9.2
|
|
55
|
+
"@slicemachine/manager": "^0.9.2",
|
|
56
56
|
chalk: "^4.1.2",
|
|
57
57
|
giget: "^1.1.2",
|
|
58
58
|
globby: "^13.1.3",
|
|
@@ -65,7 +65,7 @@ const dependencies = {
|
|
|
65
65
|
};
|
|
66
66
|
const devDependencies = {
|
|
67
67
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
68
|
-
"@slicemachine/plugin-kit": "0.4.12
|
|
68
|
+
"@slicemachine/plugin-kit": "0.4.12",
|
|
69
69
|
"@types/listr": "0.14.4",
|
|
70
70
|
"@types/prompts": "2.4.3",
|
|
71
71
|
"@types/semver": "7.3.13",
|
|
@@ -91,7 +91,7 @@ const devDependencies = {
|
|
|
91
91
|
"vite-plugin-sdk": "0.1.1",
|
|
92
92
|
vitest: "0.32.0"
|
|
93
93
|
};
|
|
94
|
-
const gitHead = "
|
|
94
|
+
const gitHead = "cef4530270d138738c8d5f8843efd26551da6688";
|
|
95
95
|
const pkg = {
|
|
96
96
|
name,
|
|
97
97
|
version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slicemachine/init",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Init Prismic Slice Machine in your project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dev": "vite build --watch",
|
|
42
42
|
"format": "prettier --write .",
|
|
43
43
|
"lint": "eslint --max-warnings 0 --ext .js,.ts .",
|
|
44
|
-
"prepack": "
|
|
44
|
+
"prepack": "npm run build",
|
|
45
45
|
"size": "size-limit",
|
|
46
46
|
"test": "yarn lint && yarn types && yarn unit && yarn build && yarn size",
|
|
47
47
|
"types": "tsc --noEmit",
|
|
@@ -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.9.2
|
|
56
|
+
"@slicemachine/manager": "^0.9.2",
|
|
57
57
|
"chalk": "^4.1.2",
|
|
58
58
|
"giget": "^1.1.2",
|
|
59
59
|
"globby": "^13.1.3",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
69
|
-
"@slicemachine/plugin-kit": "0.4.12
|
|
69
|
+
"@slicemachine/plugin-kit": "0.4.12",
|
|
70
70
|
"@types/listr": "0.14.4",
|
|
71
71
|
"@types/prompts": "2.4.3",
|
|
72
72
|
"@types/semver": "7.3.13",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"vite-plugin-sdk": "0.1.1",
|
|
93
93
|
"vitest": "0.32.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "cef4530270d138738c8d5f8843efd26551da6688"
|
|
96
96
|
}
|
|
@@ -228,7 +228,7 @@ export class SliceMachineInitProcess {
|
|
|
228
228
|
// eslint-disable-next-line no-console
|
|
229
229
|
console.log(`
|
|
230
230
|
YOUR REPOSITORY
|
|
231
|
-
|
|
231
|
+
Page Builder ${chalk.cyan(dashboardURL)}
|
|
232
232
|
API ${chalk.cyan(apiURL)}
|
|
233
233
|
|
|
234
234
|
RESOURCES
|
|
@@ -246,7 +246,7 @@ export class SliceMachineInitProcess {
|
|
|
246
246
|
const { openDashboard } = await prompt<boolean, "openDashboard">({
|
|
247
247
|
type: "confirm",
|
|
248
248
|
name: "openDashboard",
|
|
249
|
-
message: "Would you like to open your repository
|
|
249
|
+
message: "Would you like to open your repository?",
|
|
250
250
|
initial: true,
|
|
251
251
|
});
|
|
252
252
|
|
|
@@ -344,12 +344,13 @@ export class SliceMachineInitProcess {
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
protected async copyStarter(): Promise<void> {
|
|
347
|
+
const dir = await this.getStarterDirectoryName();
|
|
348
|
+
|
|
347
349
|
return listrRun([
|
|
348
350
|
{
|
|
349
351
|
title: "Copying starter...\n",
|
|
350
|
-
task: async () => {
|
|
352
|
+
task: async (_, task) => {
|
|
351
353
|
const starter = this.options.starter;
|
|
352
|
-
const dir = await this.getStarterDirectoryName();
|
|
353
354
|
|
|
354
355
|
await downloadTemplate(
|
|
355
356
|
`${GIGET_PROVIDER}:${GIGET_ORGANIZATION}/${starter}#HEAD`,
|
|
@@ -360,6 +361,8 @@ export class SliceMachineInitProcess {
|
|
|
360
361
|
|
|
361
362
|
process.chdir(dir);
|
|
362
363
|
this.manager.cwd = process.cwd();
|
|
364
|
+
|
|
365
|
+
task.title = "Starter copied\n";
|
|
363
366
|
},
|
|
364
367
|
},
|
|
365
368
|
]);
|
|
@@ -590,6 +593,7 @@ export class SliceMachineInitProcess {
|
|
|
590
593
|
await new Promise((resolve) => {
|
|
591
594
|
const initialRawMode = !!process.stdin.isRaw;
|
|
592
595
|
process.stdin.setRawMode?.(true);
|
|
596
|
+
process.stdin.resume();
|
|
593
597
|
process.stdin.once("data", (data: Buffer) => {
|
|
594
598
|
process.stdin.setRawMode?.(initialRawMode);
|
|
595
599
|
process.stdin.pause();
|