create-remix-game 1.0.8 → 1.1.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/install.js CHANGED
@@ -6,11 +6,17 @@ export async function installDependencies(projectPath, packageManager) {
6
6
  const args = packageManager === 'yarn' ? [] : ['install'];
7
7
  const child = spawn(command, args, {
8
8
  cwd: projectPath,
9
- stdio: 'inherit',
9
+ stdio: 'pipe',
10
10
  shell: true,
11
11
  });
12
+ let errorOutput = '';
13
+ child.stderr?.on('data', (data) => {
14
+ errorOutput += data.toString();
15
+ });
12
16
  child.on('close', (code) => {
13
17
  if (code !== 0) {
18
+ console.error(chalk.red('\n✗ Installation failed:'));
19
+ console.error(errorOutput);
14
20
  reject(new Error(`${packageManager} install failed with code ${code}`));
15
21
  }
16
22
  else {
@@ -34,14 +40,19 @@ export async function installLatestPackages(projectPath, packageManager, package
34
40
  const command = packageManager === 'yarn' ? 'yarn' : packageManager;
35
41
  const addCmd = packageManager === 'yarn' ? 'add' : packageManager === 'pnpm' ? 'add' : 'install';
36
42
  const args = packageManager === 'yarn' ? [addCmd, '-D', ...packages] : [addCmd, '-D', ...packages];
37
- console.log(chalk.cyan(`✓ Installing latest versions: ${packages.join(', ')}`));
38
43
  const child = spawn(command, args, {
39
44
  cwd: projectPath,
40
- stdio: 'inherit',
45
+ stdio: 'pipe',
41
46
  shell: true,
42
47
  });
48
+ let errorOutput = '';
49
+ child.stderr?.on('data', (data) => {
50
+ errorOutput += data.toString();
51
+ });
43
52
  child.on('close', (code) => {
44
53
  if (code !== 0) {
54
+ console.error(chalk.red('\n✗ Failed to install latest packages:'));
55
+ console.error(errorOutput);
45
56
  reject(new Error(`Failed to install ${packages.join(', ')}`));
46
57
  }
47
58
  else {
package/dist/scaffold.js CHANGED
@@ -7,11 +7,11 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
7
  function getRemixDevVersion() {
8
8
  try {
9
9
  // Try multiple paths to find remix-dev package.json
10
- // In production (compiled): __dirname is dist, so go up to packages/remix-game/dist -> packages/remix-dev
11
- // In dev/test: __dirname is src, so go up to packages/remix-game/src -> packages/remix-dev
10
+ // In production (compiled): __dirname is dist, so go up to packages/create-remix-game/dist -> packages/@insidethesim|remix-dev
11
+ // In dev/test: __dirname is src, so go up to packages/create-remix-game/src -> packages/@insidethesim|remix-dev
12
12
  const possiblePaths = [
13
- path.join(__dirname, '../../remix-dev/package.json'), // From src or dist
14
- path.join(__dirname, '../../../remix-dev/package.json'), // From nested dir
13
+ path.join(__dirname, '../../@insidethesim|remix-dev/package.json'), // From src or dist
14
+ path.join(__dirname, '../../../@insidethesim|remix-dev/package.json'), // From nested dir
15
15
  ];
16
16
  for (const packageJsonPath of possiblePaths) {
17
17
  if (fs.existsSync(packageJsonPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-remix-game",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "CLI for scaffolding Remix games",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "@types/fs-extra": "^11.0.4",
31
31
  "@types/node": "^22.18.6",
32
32
  "@types/prompts": "^2.4.9",
33
- "typescript": "^5.9.2"
33
+ "typescript": "^5.9.3"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "tsc --watch",