sandstone-cli 2.1.2 → 2.1.3
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/create.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/src/commands/create.ts +1 -1
- package/src/version.ts +1 -1
package/lib/create.js
CHANGED
|
@@ -5680,7 +5680,7 @@ var {
|
|
|
5680
5680
|
import figlet from "figlet";
|
|
5681
5681
|
|
|
5682
5682
|
// src/version.ts
|
|
5683
|
-
var CLI_VERSION = "2.1.
|
|
5683
|
+
var CLI_VERSION = "2.1.3";
|
|
5684
5684
|
|
|
5685
5685
|
// src/commands/create.ts
|
|
5686
5686
|
var import_semver = __toESM(require_semver2(), 1);
|
|
@@ -6533,7 +6533,7 @@ async function createCommand2(_project, opts) {
|
|
|
6533
6533
|
const exec = (cmd) => child.execSync(cmd, { cwd: projectPath });
|
|
6534
6534
|
exec("git clone https://github.com/sandstone-mc/sandstone-template.git .");
|
|
6535
6535
|
exec(`git checkout ${projectType}-${version[0]}`);
|
|
6536
|
-
await import_fs_extra.default.rm(".git", { force: true, recursive: true });
|
|
6536
|
+
await import_fs_extra.default.rm(path2.join(projectPath, ".git"), { force: true, recursive: true });
|
|
6537
6537
|
exec(`${packageManager} install`);
|
|
6538
6538
|
const configPath = path2.join(projectPath, `${projectType === "library" ? "test/" : ""}sandstone.config.ts`);
|
|
6539
6539
|
let templateConfig = await import_fs_extra.default.readFile(configPath, "utf8");
|
package/lib/index.js
CHANGED
|
@@ -22574,7 +22574,7 @@ var {
|
|
|
22574
22574
|
import figlet from "figlet";
|
|
22575
22575
|
|
|
22576
22576
|
// src/version.ts
|
|
22577
|
-
var CLI_VERSION = "2.1.
|
|
22577
|
+
var CLI_VERSION = "2.1.3";
|
|
22578
22578
|
|
|
22579
22579
|
// src/commands/build.ts
|
|
22580
22580
|
var import_fs_extra2 = __toESM(require_lib(), 1);
|
|
@@ -24206,7 +24206,7 @@ async function createCommand2(_project, opts) {
|
|
|
24206
24206
|
const exec = (cmd) => child.execSync(cmd, { cwd: projectPath });
|
|
24207
24207
|
exec("git clone https://github.com/sandstone-mc/sandstone-template.git .");
|
|
24208
24208
|
exec(`git checkout ${projectType}-${version[0]}`);
|
|
24209
|
-
await import_fs_extra3.default.rm(".git", { force: true, recursive: true });
|
|
24209
|
+
await import_fs_extra3.default.rm(path4.join(projectPath, ".git"), { force: true, recursive: true });
|
|
24210
24210
|
exec(`${packageManager} install`);
|
|
24211
24211
|
const configPath = path4.join(projectPath, `${projectType === "library" ? "test/" : ""}sandstone.config.ts`);
|
|
24212
24212
|
let templateConfig = await import_fs_extra3.default.readFile(configPath, "utf8");
|
package/package.json
CHANGED
package/src/commands/create.ts
CHANGED
|
@@ -177,7 +177,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
|
|
|
177
177
|
|
|
178
178
|
exec(`git checkout ${projectType}-${version[0]}`)
|
|
179
179
|
|
|
180
|
-
await fs.rm('.git', { force: true, recursive: true })
|
|
180
|
+
await fs.rm(path.join(projectPath, '.git'), { force: true, recursive: true })
|
|
181
181
|
|
|
182
182
|
exec(`${packageManager} install`)
|
|
183
183
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '2.1.
|
|
1
|
+
export const CLI_VERSION = '2.1.3'
|