@uniformdev/cli 20.0.0 → 20.1.1-alpha.2

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 (2) hide show
  1. package/dist/index.mjs +8 -4
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -8182,7 +8182,7 @@ import { PostHog } from "posthog-node";
8182
8182
  // package.json
8183
8183
  var package_default = {
8184
8184
  name: "@uniformdev/cli",
8185
- version: "20.0.0",
8185
+ version: "20.1.0",
8186
8186
  description: "Uniform command line interface tool",
8187
8187
  license: "SEE LICENSE IN LICENSE.txt",
8188
8188
  main: "./cli.js",
@@ -8581,7 +8581,8 @@ async function cloneStarter({
8581
8581
  spin,
8582
8582
  githubPath,
8583
8583
  targetDir,
8584
- dotEnvFile
8584
+ dotEnvFile,
8585
+ githubBranch
8585
8586
  }) {
8586
8587
  const done = await spin("Fetching starter code...");
8587
8588
  const cloneDir = path.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
@@ -8593,7 +8594,8 @@ async function cloneStarter({
8593
8594
  url: `https://github.com/${user}/${repo}`,
8594
8595
  dir: cloneDir,
8595
8596
  singleBranch: true,
8596
- depth: 1
8597
+ depth: 1,
8598
+ ref: githubBranch
8597
8599
  });
8598
8600
  } catch (err) {
8599
8601
  throw new Error(`Failed to fetch starter code: ${err.message}`);
@@ -8895,6 +8897,7 @@ async function newHandler({
8895
8897
  name: "Component Starter Kit (Recommended)",
8896
8898
  value: {
8897
8899
  githubUri: "uniformdev/uniform-component-starter-kit",
8900
+ githubBranch: "release/6.0.0",
8898
8901
  serverUrl: "http://localhost:3000",
8899
8902
  previewPath: "/api/preview?secret=hello-world",
8900
8903
  installEnv: [["UNIFORM_PREVIEW_SECRET", "hello-world"]]
@@ -8923,7 +8926,7 @@ async function newHandler({
8923
8926
  }
8924
8927
  };
8925
8928
  const {
8926
- starter: { githubUri, serverUrl, previewPath, installEnv }
8929
+ starter: { githubUri, serverUrl, previewPath, installEnv, githubBranch }
8927
8930
  } = await inquirer4.prompt([
8928
8931
  {
8929
8932
  type: "list",
@@ -8964,6 +8967,7 @@ async function newHandler({
8964
8967
  const cloneStartTimestamp = Date.now();
8965
8968
  const { runNpmInstall } = await cloneStarter({
8966
8969
  githubPath: githubUri,
8970
+ githubBranch,
8967
8971
  spin,
8968
8972
  targetDir,
8969
8973
  dotEnvFile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.0.0",
3
+ "version": "20.1.1-alpha.2+1e066734ed",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "20.0.0",
31
- "@uniformdev/canvas": "20.0.0",
32
- "@uniformdev/context": "20.0.0",
33
- "@uniformdev/files": "20.0.0",
34
- "@uniformdev/project-map": "20.0.0",
35
- "@uniformdev/redirect": "20.0.0",
30
+ "@uniformdev/assets": "20.1.1-alpha.2+1e066734ed",
31
+ "@uniformdev/canvas": "20.1.1-alpha.2+1e066734ed",
32
+ "@uniformdev/context": "20.1.1-alpha.2+1e066734ed",
33
+ "@uniformdev/files": "20.1.1-alpha.2+1e066734ed",
34
+ "@uniformdev/project-map": "20.1.1-alpha.2+1e066734ed",
35
+ "@uniformdev/redirect": "20.1.1-alpha.2+1e066734ed",
36
36
  "call-bind": "^1.0.2",
37
37
  "colorette": "2.0.20",
38
38
  "cosmiconfig": "9.0.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "0b9d400da380979e899844d2c900fc05f2f34af8"
81
+ "gitHead": "1e066734ed23e5a51205896b47c92566380d52bc"
82
82
  }