create-skybridge 0.0.0-dev.1 → 0.0.0-dev.3

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.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import * as prompts from "@clack/prompts";
3
2
  import mri from "mri";
4
3
  import fs from "node:fs";
@@ -10,7 +9,7 @@ const argv = mri(process.argv.slice(2), {
10
9
  });
11
10
  const cwd = process.cwd();
12
11
  const TEMPLATE_REPO = "https://github.com/alpic-ai/apps-sdk-template";
13
- const defaultTargetDir = "skybridge-project";
12
+ const defaultProjectName = "skybridge-project";
14
13
  // prettier-ignore
15
14
  const helpMessage = `\
16
15
  Usage: create-skybridge [OPTION]... [DIRECTORY]
@@ -57,8 +56,8 @@ async function init() {
57
56
  if (interactive) {
58
57
  const projectName = await prompts.text({
59
58
  message: "Project name:",
60
- defaultValue: defaultTargetDir,
61
- placeholder: defaultTargetDir,
59
+ defaultValue: defaultProjectName,
60
+ placeholder: defaultProjectName,
62
61
  validate: (value) => {
63
62
  return value.length === 0 || formatTargetDir(value).length > 0
64
63
  ? undefined
@@ -70,7 +69,7 @@ async function init() {
70
69
  targetDir = formatTargetDir(projectName);
71
70
  }
72
71
  else {
73
- targetDir = defaultTargetDir;
72
+ targetDir = defaultProjectName;
74
73
  }
75
74
  }
76
75
  // 2. Handle directory if exist and not empty
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "create-skybridge",
3
- "version": "0.0.0-dev.1",
3
+ "version": "0.0.0-dev.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Alpic",
7
7
  "bin": {
8
- "create-skybridge": "dist/index.js"
8
+ "create-skybridge": "index.js"
9
9
  },
10
10
  "files": [
11
11
  "index.js",
@@ -21,7 +21,7 @@
21
21
  "typescript": "^5.9.3"
22
22
  },
23
23
  "scripts": {
24
- "build": "tsc && echo '#!/usr/bin/env node' | cat - dist/index.js > temp && mv temp dist/index.js",
24
+ "build": "tsc",
25
25
  "test:type": "tsc --noEmit",
26
26
  "test:format": "biome ci"
27
27
  }