sandstone-cli 2.0.0 → 2.0.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/bun.lock CHANGED
@@ -29,7 +29,7 @@
29
29
  "@types/fs-extra": "^11.0.2",
30
30
  "@types/react": "^19.2.10",
31
31
  "@types/semver": "^7.5.3",
32
- "sandstone": "^1.0.0-beta.1",
32
+ "sandstone": "1.0.0-beta.1",
33
33
  "typescript": "^5.2.2",
34
34
  },
35
35
  },
@@ -137,7 +137,7 @@ export async function createCommand(_project, opts) {
137
137
  const exec = (cmd) => child.execSync(cmd, { cwd: projectPath });
138
138
  exec('git clone https://github.com/sandstone-mc/sandstone-template.git .');
139
139
  exec(`git checkout ${projectType}-${version[0]}`);
140
- exec('npx rimraf -rf .git');
140
+ await fs.rm('.git', { force: true, recursive: true });
141
141
  exec(`${packageManager} install`);
142
142
  const configPath = path.join(projectPath, `${projectType === 'library' ? 'test/' : ''}sandstone.config.ts`);
143
143
  // Merge with the config values
package/lib/create.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env bun
2
2
  export {};
package/lib/create.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env bun
2
2
  import { Argument, Command } from 'commander';
3
3
  import figlet from 'figlet';
4
4
  import { createCommand } from './commands/index.js';
package/lib/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ #!/usr/bin/env bun
1
2
  export {};
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  import { Argument, Command } from 'commander';
2
3
  import figlet from 'figlet';
3
4
  import { buildCommand, createCommand, watchCommand, installNativeCommand, installVanillaCommand, uninstallVanillaCommand, refreshCommand } from './commands/index.js';
@@ -5,7 +6,7 @@ import { BuildDeclares } from './shared.js';
5
6
  const commander = new Command();
6
7
  console.log(figlet.textSync('Sandstone'));
7
8
  const CLI = commander
8
- .version('1.0.0')
9
+ .version('2.0.2', '-v, --version')
9
10
  .description('The CLI for Sandstone - the minecraft pack creation library.');
10
11
  const build = CLI
11
12
  .command('build')
package/lib/shared.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const BuildDeclares = {
2
2
  // Flags
3
3
  dry: ['-d, --dry', 'Do not save the pack. Mostly useful with `verbose`.'],
4
- verbose: ['-v, --verbose', 'Log all resulting resources: functions, advancements...'],
4
+ verbose: ['-f, --verbose', 'Fully log all resulting resources: functions, advancements...'],
5
5
  root: ['-r, --root', 'Save the pack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Override the value specified in the configuration file.'],
6
6
  fullTrace: ['-t, --full-trace', 'Show the full stack trace on errors.'],
7
7
  strictErrors: ['-s, --strict-errors', 'Stop pack compilation on type errors.'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandstone-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "The CLI for Sandstone - the minecraft pack creation library.",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -176,7 +176,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
176
176
 
177
177
  exec(`git checkout ${projectType}-${version[0]}`)
178
178
 
179
- exec('npx rimraf -rf .git')
179
+ await fs.rm('.git', { force: true, recursive: true })
180
180
 
181
181
  exec(`${packageManager} install`)
182
182
 
package/src/create.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env bun
2
2
  import { Argument, Command } from 'commander'
3
3
  import figlet from 'figlet'
4
4
  import { createCommand } from './commands/index.js'
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  import { Argument, Command } from 'commander'
2
3
  import figlet from 'figlet'
3
4
  import { buildCommand, createCommand, watchCommand, installNativeCommand, installVanillaCommand, uninstallVanillaCommand, refreshCommand } from './commands/index.js'
@@ -8,7 +9,7 @@ const commander = new Command()
8
9
  console.log(figlet.textSync('Sandstone'));
9
10
 
10
11
  const CLI = commander
11
- .version('1.0.0')
12
+ .version('2.0.2', '-v, --version')
12
13
  .description('The CLI for Sandstone - the minecraft pack creation library.')
13
14
 
14
15
  const build = CLI
package/src/shared.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export const BuildDeclares = {
2
2
  // Flags
3
3
  dry: ['-d, --dry', 'Do not save the pack. Mostly useful with `verbose`.'],
4
- verbose: ['-v, --verbose', 'Log all resulting resources: functions, advancements...'],
4
+ verbose: ['-f, --verbose', 'Fully log all resulting resources: functions, advancements...'],
5
5
  root: ['-r, --root', 'Save the pack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Override the value specified in the configuration file.'],
6
6
  fullTrace: ['-t, --full-trace', 'Show the full stack trace on errors.'],
7
7
  strictErrors: ['-s, --strict-errors', 'Stop pack compilation on type errors.'],