@uniformdev/cli 20.4.1-alpha.3 → 20.4.2-alpha.5
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/index.mjs +8 -5
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -8455,7 +8455,7 @@ import { PostHog } from "posthog-node";
|
|
|
8455
8455
|
// package.json
|
|
8456
8456
|
var package_default = {
|
|
8457
8457
|
name: "@uniformdev/cli",
|
|
8458
|
-
version: "20.4.
|
|
8458
|
+
version: "20.4.1",
|
|
8459
8459
|
description: "Uniform command line interface tool",
|
|
8460
8460
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
8461
8461
|
main: "./cli.js",
|
|
@@ -8855,7 +8855,8 @@ async function cloneStarter({
|
|
|
8855
8855
|
spin,
|
|
8856
8856
|
githubPath,
|
|
8857
8857
|
targetDir,
|
|
8858
|
-
dotEnvFile
|
|
8858
|
+
dotEnvFile,
|
|
8859
|
+
githubBranch
|
|
8859
8860
|
}) {
|
|
8860
8861
|
const done = await spin("Fetching starter code...");
|
|
8861
8862
|
const cloneDir = path.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
|
|
@@ -8867,7 +8868,8 @@ async function cloneStarter({
|
|
|
8867
8868
|
url: `https://github.com/${user}/${repo}`,
|
|
8868
8869
|
dir: cloneDir,
|
|
8869
8870
|
singleBranch: true,
|
|
8870
|
-
depth: 1
|
|
8871
|
+
depth: 1,
|
|
8872
|
+
ref: githubBranch
|
|
8871
8873
|
});
|
|
8872
8874
|
} catch (err) {
|
|
8873
8875
|
throw new Error(`Failed to fetch starter code: ${err.message}`);
|
|
@@ -9168,7 +9170,7 @@ async function newHandler({
|
|
|
9168
9170
|
csk: {
|
|
9169
9171
|
name: "Component Starter Kit (Recommended)",
|
|
9170
9172
|
value: {
|
|
9171
|
-
githubUri: "uniformdev/
|
|
9173
|
+
githubUri: "uniformdev/component-starter-kit-next-approuter",
|
|
9172
9174
|
serverUrl: "http://localhost:3000",
|
|
9173
9175
|
previewPath: "/api/preview?secret=hello-world",
|
|
9174
9176
|
installEnv: [["UNIFORM_PREVIEW_SECRET", "hello-world"]]
|
|
@@ -9197,7 +9199,7 @@ async function newHandler({
|
|
|
9197
9199
|
}
|
|
9198
9200
|
};
|
|
9199
9201
|
const {
|
|
9200
|
-
starter: { githubUri, serverUrl, previewPath, installEnv }
|
|
9202
|
+
starter: { githubUri, serverUrl, previewPath, installEnv, githubBranch }
|
|
9201
9203
|
} = await inquirer4.prompt([
|
|
9202
9204
|
{
|
|
9203
9205
|
type: "list",
|
|
@@ -9238,6 +9240,7 @@ async function newHandler({
|
|
|
9238
9240
|
const cloneStartTimestamp = Date.now();
|
|
9239
9241
|
const { runNpmInstall } = await cloneStarter({
|
|
9240
9242
|
githubPath: githubUri,
|
|
9243
|
+
githubBranch,
|
|
9241
9244
|
spin,
|
|
9242
9245
|
targetDir,
|
|
9243
9246
|
dotEnvFile
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.2-alpha.5+23d2506573",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@thi.ng/mime": "^2.2.23",
|
|
30
|
-
"@uniformdev/assets": "20.4.
|
|
31
|
-
"@uniformdev/canvas": "20.4.
|
|
32
|
-
"@uniformdev/context": "20.4.
|
|
33
|
-
"@uniformdev/files": "20.4.
|
|
34
|
-
"@uniformdev/project-map": "20.4.
|
|
35
|
-
"@uniformdev/redirect": "20.4.
|
|
36
|
-
"@uniformdev/richtext": "20.4.
|
|
30
|
+
"@uniformdev/assets": "20.4.2-alpha.5+23d2506573",
|
|
31
|
+
"@uniformdev/canvas": "20.4.2-alpha.5+23d2506573",
|
|
32
|
+
"@uniformdev/context": "20.4.2-alpha.5+23d2506573",
|
|
33
|
+
"@uniformdev/files": "20.4.2-alpha.5+23d2506573",
|
|
34
|
+
"@uniformdev/project-map": "20.4.2-alpha.5+23d2506573",
|
|
35
|
+
"@uniformdev/redirect": "20.4.2-alpha.5+23d2506573",
|
|
36
|
+
"@uniformdev/richtext": "20.4.2-alpha.5+23d2506573",
|
|
37
37
|
"call-bind": "^1.0.2",
|
|
38
38
|
"colorette": "2.0.20",
|
|
39
39
|
"cosmiconfig": "9.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "23d25065730fa3fce441ddcf293ba87c99b723f0"
|
|
83
83
|
}
|