sandstone-cli 2.0.0 → 2.0.1

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.
@@ -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/index.js CHANGED
@@ -5,7 +5,7 @@ import { BuildDeclares } from './shared.js';
5
5
  const commander = new Command();
6
6
  console.log(figlet.textSync('Sandstone'));
7
7
  const CLI = commander
8
- .version('1.0.0')
8
+ .version('2.0.1')
9
9
  .description('The CLI for Sandstone - the minecraft pack creation library.');
10
10
  const build = CLI
11
11
  .command('build')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandstone-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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/index.ts CHANGED
@@ -8,7 +8,7 @@ const commander = new Command()
8
8
  console.log(figlet.textSync('Sandstone'));
9
9
 
10
10
  const CLI = commander
11
- .version('1.0.0')
11
+ .version('2.0.1')
12
12
  .description('The CLI for Sandstone - the minecraft pack creation library.')
13
13
 
14
14
  const build = CLI