create-threenative 0.2.0 → 0.2.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from 'child_process';
3
- import { readdirSync, readFileSync } from 'fs';
3
+ import { existsSync, realpathSync, readdirSync, readFileSync } from 'fs';
4
4
  import { mkdir, cp, readdir, readFile, writeFile } from 'fs/promises';
5
5
  import path from 'path';
6
6
  import { fileURLToPath } from 'url';
@@ -272,7 +272,8 @@ async function main() {
272
272
  process.stdout.write("Skipped install (--no-install). Run pnpm install, then pnpm dev.\n");
273
273
  else process.stdout.write("Next: cd into the project and run pnpm dev.\n");
274
274
  }
275
- if (process.argv[1] !== void 0 && path.resolve(process.argv[1]) === path.resolve(fileURLToPath(import.meta.url))) {
275
+ var entryPath = process.argv[1];
276
+ if (entryPath !== void 0 && existsSync(entryPath) && realpathSync(path.resolve(entryPath)) === realpathSync(fileURLToPath(import.meta.url))) {
276
277
  main().catch((error) => {
277
278
  process.stderr.write(`${error instanceof Error ? error.message : String(error)}
278
279
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-threenative",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Scaffold a readable ThreeNative game project.",
5
5
  "type": "module",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  "tsup": "8.5.1",
35
35
  "typescript": "5.9.3",
36
36
  "@threenative/core": "0.2.0",
37
- "@threenative/physics": "0.2.0"
37
+ "@threenative/physics": "0.2.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "tsup --config tsup.config.ts && publint",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@threenative/core": "0.2.0",
20
- "@threenative/physics": "0.2.0",
21
- "@threenative/ui": "0.2.0",
20
+ "@threenative/physics": "0.2.1",
21
+ "@threenative/ui": "0.2.1",
22
22
  "react": "19.2.0",
23
23
  "react-dom": "19.2.0",
24
24
  "three": "0.185.1"
@@ -30,7 +30,7 @@
30
30
  "@types/react-dom": "19.2.0",
31
31
  "@types/three": "0.185.3",
32
32
  "@vitejs/plugin-react": "6.0.5",
33
- "create-threenative": "0.2.0",
33
+ "create-threenative": "0.2.2",
34
34
  "playwright": "1.62.1",
35
35
  "tailwindcss": "4.3.3",
36
36
  "threenative-asset-mcp": "0.4.0",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@threenative/core": "0.2.0",
19
- "@threenative/physics": "0.2.0",
20
- "@threenative/ui": "0.2.0",
19
+ "@threenative/physics": "0.2.1",
20
+ "@threenative/ui": "0.2.1",
21
21
  "react": "19.2.0",
22
22
  "react-dom": "19.2.0",
23
23
  "three": "0.185.1"
@@ -29,7 +29,7 @@
29
29
  "@types/react": "19.2.0",
30
30
  "@types/react-dom": "19.2.0",
31
31
  "@types/three": "0.185.3",
32
- "create-threenative": "0.2.0",
32
+ "create-threenative": "0.2.2",
33
33
  "playwright": "1.62.1",
34
34
  "tailwindcss": "4.3.3",
35
35
  "threenative-asset-mcp": "0.4.0",
@@ -16,14 +16,14 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@threenative/core": "0.2.0",
19
- "@threenative/physics": "0.2.0",
19
+ "@threenative/physics": "0.2.1",
20
20
  "three": "0.185.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@threenative/playtest": "0.2.0",
24
24
  "@threenative/studio": "0.2.0",
25
25
  "@types/three": "0.185.3",
26
- "create-threenative": "0.2.0",
26
+ "create-threenative": "0.2.2",
27
27
  "esbuild": "0.27.0",
28
28
  "playwright": "1.62.1",
29
29
  "threenative-asset-mcp": "0.4.0",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@threenative/core": "0.2.0",
21
- "@threenative/physics": "0.2.0",
22
- "@threenative/ui": "0.2.0",
21
+ "@threenative/physics": "0.2.1",
22
+ "@threenative/ui": "0.2.1",
23
23
  "react": "19.2.0",
24
24
  "react-dom": "19.2.0",
25
25
  "three": "0.185.1"
@@ -32,7 +32,7 @@
32
32
  "@threenative/studio": "0.2.0",
33
33
  "@types/react": "19.2.0",
34
34
  "@types/react-dom": "19.2.0",
35
- "create-threenative": "0.2.0",
35
+ "create-threenative": "0.2.2",
36
36
  "esbuild": "0.27.0",
37
37
  "playwright": "1.62.1",
38
38
  "tailwindcss": "4.3.3",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@threenative/core": "0.2.0",
19
- "@threenative/physics": "0.2.0",
20
- "@threenative/ui": "0.2.0",
19
+ "@threenative/physics": "0.2.1",
20
+ "@threenative/ui": "0.2.1",
21
21
  "react": "19.2.0",
22
22
  "react-dom": "19.2.0",
23
23
  "three": "0.185.1"
@@ -29,7 +29,7 @@
29
29
  "@types/react": "19.2.0",
30
30
  "@types/react-dom": "19.2.0",
31
31
  "@types/three": "0.185.3",
32
- "create-threenative": "0.2.0",
32
+ "create-threenative": "0.2.2",
33
33
  "playwright": "1.62.1",
34
34
  "tailwindcss": "4.3.3",
35
35
  "threenative-asset-mcp": "0.4.0",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@threenative/core": "0.2.0",
19
- "@threenative/physics": "0.2.0",
20
- "@threenative/ui": "0.2.0",
19
+ "@threenative/physics": "0.2.1",
20
+ "@threenative/ui": "0.2.1",
21
21
  "react": "19.2.0",
22
22
  "react-dom": "19.2.0",
23
23
  "three": "0.185.1"
@@ -30,7 +30,7 @@
30
30
  "@types/react": "19.2.0",
31
31
  "@types/react-dom": "19.2.0",
32
32
  "playwright": "1.62.1",
33
- "create-threenative": "0.2.0",
33
+ "create-threenative": "0.2.2",
34
34
  "tailwindcss": "4.3.3",
35
35
  "threenative-asset-mcp": "0.4.0",
36
36
  "threenative-sculpt-mcp": "0.1.0",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@threenative/core": "0.2.0",
20
- "@threenative/physics": "0.2.0",
21
- "@threenative/ui": "0.2.0",
20
+ "@threenative/physics": "0.2.1",
21
+ "@threenative/ui": "0.2.1",
22
22
  "react": "19.2.0",
23
23
  "react-dom": "19.2.0",
24
24
  "three": "0.185.1"
@@ -31,7 +31,7 @@
31
31
  "@types/react-dom": "19.2.0",
32
32
  "@types/three": "0.185.3",
33
33
  "@vitejs/plugin-react": "6.0.5",
34
- "create-threenative": "0.2.0",
34
+ "create-threenative": "0.2.2",
35
35
  "esbuild": "0.27.0",
36
36
  "playwright": "1.62.1",
37
37
  "tailwindcss": "4.3.3",