sandstone-cli 2.0.4 → 2.0.5
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/build.js +2 -2
- package/lib/create.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/commands/build.ts +2 -2
- package/src/create.ts +1 -1
- package/src/index.ts +1 -1
package/lib/commands/build.js
CHANGED
|
@@ -424,7 +424,7 @@ async function _buildProject(cliOptions, folder, silent = false, existingContext
|
|
|
424
424
|
await fs.unlink(path.join(outputPath, relativePath));
|
|
425
425
|
}
|
|
426
426
|
else {
|
|
427
|
-
await fs.writeFile(path.join(outputPath, relativePath), contents);
|
|
427
|
+
await fs.writeFile(path.join(outputPath, relativePath), contents.replaceAll('"min_version"', '"min_format"').replace('"max_version"', '"max_format"'));
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}
|
|
@@ -493,7 +493,7 @@ async function _buildProject(cliOptions, folder, silent = false, existingContext
|
|
|
493
493
|
await fs.unlink(path.join(outputPath, relativePath));
|
|
494
494
|
}
|
|
495
495
|
else {
|
|
496
|
-
await fs.writeFile(path.join(outputPath, relativePath), contents);
|
|
496
|
+
await fs.writeFile(path.join(outputPath, relativePath), contents.replaceAll('"min_version"', '"min_format"').replace('"max_version"', '"max_format"'));
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
}
|
package/lib/create.js
CHANGED
|
@@ -6,7 +6,7 @@ import { BuildDeclares } from './shared.js';
|
|
|
6
6
|
const commander = new Command();
|
|
7
7
|
console.log(figlet.textSync('Sandstone'));
|
|
8
8
|
const createCLI = commander
|
|
9
|
-
.version('
|
|
9
|
+
.version('2.0.5')
|
|
10
10
|
.description('Create a new Sandstone project. ⛏')
|
|
11
11
|
.action(createCommand)
|
|
12
12
|
.addArgument(new Argument('<projectName>', 'Not the name of the output pack'));
|
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { BuildDeclares } from './shared.js';
|
|
|
6
6
|
const commander = new Command();
|
|
7
7
|
console.log(figlet.textSync('Sandstone'));
|
|
8
8
|
const CLI = commander
|
|
9
|
-
.version('2.0.
|
|
9
|
+
.version('2.0.5', '-v, --version')
|
|
10
10
|
.description('The CLI for Sandstone - the minecraft pack creation library.');
|
|
11
11
|
const build = CLI
|
|
12
12
|
.command('build')
|
package/package.json
CHANGED
package/src/commands/build.ts
CHANGED
|
@@ -572,7 +572,7 @@ async function _buildProject(
|
|
|
572
572
|
if (contents === undefined) {
|
|
573
573
|
await fs.unlink(path.join(outputPath, relativePath))
|
|
574
574
|
} else {
|
|
575
|
-
await fs.writeFile(path.join(outputPath, relativePath), contents)
|
|
575
|
+
await fs.writeFile(path.join(outputPath, relativePath), contents.replaceAll('"min_version"', '"min_format"').replace('"max_version"', '"max_format"'))
|
|
576
576
|
}
|
|
577
577
|
},
|
|
578
578
|
)
|
|
@@ -662,7 +662,7 @@ async function _buildProject(
|
|
|
662
662
|
if (contents === undefined) {
|
|
663
663
|
await fs.unlink(path.join(outputPath, relativePath))
|
|
664
664
|
} else {
|
|
665
|
-
await fs.writeFile(path.join(outputPath, relativePath), contents)
|
|
665
|
+
await fs.writeFile(path.join(outputPath, relativePath), contents.replaceAll('"min_version"', '"min_format"').replace('"max_version"', '"max_format"'))
|
|
666
666
|
}
|
|
667
667
|
},
|
|
668
668
|
)
|
package/src/create.ts
CHANGED
|
@@ -9,7 +9,7 @@ const commander = new Command()
|
|
|
9
9
|
console.log(figlet.textSync('Sandstone'));
|
|
10
10
|
|
|
11
11
|
const createCLI = commander
|
|
12
|
-
.version('
|
|
12
|
+
.version('2.0.5')
|
|
13
13
|
.description('Create a new Sandstone project. ⛏')
|
|
14
14
|
.action(createCommand)
|
|
15
15
|
.addArgument(new Argument('<projectName>', 'Not the name of the output pack'))
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ const commander = new Command()
|
|
|
9
9
|
console.log(figlet.textSync('Sandstone'));
|
|
10
10
|
|
|
11
11
|
const CLI = commander
|
|
12
|
-
.version('2.0.
|
|
12
|
+
.version('2.0.5', '-v, --version')
|
|
13
13
|
.description('The CLI for Sandstone - the minecraft pack creation library.')
|
|
14
14
|
|
|
15
15
|
const build = CLI
|