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.
- package/lib/commands/create.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/commands/create.ts +1 -1
- package/src/index.ts +1 -1
package/lib/commands/create.js
CHANGED
|
@@ -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
|
-
|
|
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('
|
|
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
package/src/commands/create.ts
CHANGED
|
@@ -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
|
-
|
|
179
|
+
await fs.rm('.git', { force: true, recursive: true })
|
|
180
180
|
|
|
181
181
|
exec(`${packageManager} install`)
|
|
182
182
|
|
package/src/index.ts
CHANGED