sandstone-cli 0.6.3 → 0.6.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/README.md +19 -19
- package/lib/build/buildProject.js +17 -9
- package/lib/commands/create.js +4 -4
- package/lib/commands/watch.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sandstone-cli
|
|
2
2
|
=============
|
|
3
3
|
|
|
4
|
-
The CLI for Sandstone - the
|
|
4
|
+
The CLI for Sandstone - the datapack creation library.
|
|
5
5
|
|
|
6
6
|
[](https://oclif.io)
|
|
7
7
|
[](https://npmjs.org/package/sandstone-cli)
|
|
@@ -19,7 +19,7 @@ $ npm install -g sandstone-cli
|
|
|
19
19
|
$ sand COMMAND
|
|
20
20
|
running command...
|
|
21
21
|
$ sand (-v|--version|version)
|
|
22
|
-
sandstone-cli/0.6.
|
|
22
|
+
sandstone-cli/0.6.5 linux-x64 node-v16.19.1
|
|
23
23
|
$ sand --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ sand COMMAND
|
|
@@ -52,30 +52,30 @@ OPTIONS
|
|
|
52
52
|
-p, --production Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to "production".
|
|
53
53
|
-v, --verbose Log all resulting resources: functions, advancements...
|
|
54
54
|
|
|
55
|
-
--autoReload=port Automatically reload your
|
|
55
|
+
--autoReload=port Automatically reload your datapack in-game. Requires to open the world to LAN with
|
|
56
56
|
cheats enabled, and to specify the port.
|
|
57
57
|
|
|
58
58
|
--clientPath=clientPath Path of the client folder. Override the value specified in the configuration file.
|
|
59
59
|
|
|
60
|
-
--description=description Description of the
|
|
60
|
+
--description=description Description of the datapack. Override the value specified in the configuration file.
|
|
61
61
|
|
|
62
62
|
--formatVersion=formatVersion Pack format version. Override the value specified in the configuration file.
|
|
63
63
|
|
|
64
64
|
--fullTrace Show the full stack trace on errors.
|
|
65
65
|
|
|
66
|
-
--name=name Name of the
|
|
66
|
+
--name=name Name of the datapack. Override the value specified in the configuration file.
|
|
67
67
|
|
|
68
68
|
--namespace=namespace The default namespace. Override the value specified in the configuration file.
|
|
69
69
|
|
|
70
|
-
--root Save the
|
|
70
|
+
--root Save the datapack & resource pack in the .minecraft/datapacks &
|
|
71
71
|
.minecraft/resource_packs folders. Override the value specified in the configuration
|
|
72
72
|
file.
|
|
73
73
|
|
|
74
74
|
--serverPath=serverPath Path of the server folder. Override the value specified in the configuration file.
|
|
75
75
|
|
|
76
|
-
--strictErrors Stop
|
|
76
|
+
--strictErrors Stop datapack compilation on type errors.
|
|
77
77
|
|
|
78
|
-
--world=world The world to save the
|
|
78
|
+
--world=world The world to save the datapack in. Override the value specified in the configuration
|
|
79
79
|
file.
|
|
80
80
|
|
|
81
81
|
EXAMPLES
|
|
@@ -84,7 +84,7 @@ EXAMPLES
|
|
|
84
84
|
$ sand build --verbose --dry
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
_See code: [src/commands/build.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.
|
|
87
|
+
_See code: [src/commands/build.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/build.ts)_
|
|
88
88
|
|
|
89
89
|
## `sand create PROJECT-NAME`
|
|
90
90
|
|
|
@@ -103,7 +103,7 @@ OPTIONS
|
|
|
103
103
|
-h, --help show CLI help
|
|
104
104
|
-n, --namespace=namespace The default namespace that will be used.
|
|
105
105
|
|
|
106
|
-
-r, --save-root Save the
|
|
106
|
+
-r, --save-root Save the datapack & resource pack in the .minecraft/datapacks &
|
|
107
107
|
.minecraft/resource_packs folders. Not compatible with --world.
|
|
108
108
|
|
|
109
109
|
-s, --server-path=server-path The server path to write the server-side packs at. Not compatible with --world.
|
|
@@ -122,7 +122,7 @@ EXAMPLE
|
|
|
122
122
|
$ sand create my-pack
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
_See code: [src/commands/create.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.
|
|
125
|
+
_See code: [src/commands/create.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/create.ts)_
|
|
126
126
|
|
|
127
127
|
## `sand help [COMMAND]`
|
|
128
128
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
$ sand update --cli --sandstone --skip
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/update.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.
|
|
167
|
+
_See code: [src/commands/update.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/update.ts)_
|
|
168
168
|
|
|
169
169
|
## `sand watch PATH CONFIG-PATH`
|
|
170
170
|
|
|
@@ -184,30 +184,30 @@ OPTIONS
|
|
|
184
184
|
-p, --production Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to "production".
|
|
185
185
|
-v, --verbose Log all resulting resources: functions, advancements...
|
|
186
186
|
|
|
187
|
-
--autoReload=port Automatically reload your
|
|
187
|
+
--autoReload=port Automatically reload your datapack in-game. Requires to open the world to LAN with
|
|
188
188
|
cheats enabled, and to specify the port.
|
|
189
189
|
|
|
190
190
|
--clientPath=clientPath Path of the client folder. Override the value specified in the configuration file.
|
|
191
191
|
|
|
192
|
-
--description=description Description of the
|
|
192
|
+
--description=description Description of the datapack. Override the value specified in the configuration file.
|
|
193
193
|
|
|
194
194
|
--formatVersion=formatVersion Pack format version. Override the value specified in the configuration file.
|
|
195
195
|
|
|
196
196
|
--fullTrace Show the full stack trace on errors.
|
|
197
197
|
|
|
198
|
-
--name=name Name of the
|
|
198
|
+
--name=name Name of the datapack. Override the value specified in the configuration file.
|
|
199
199
|
|
|
200
200
|
--namespace=namespace The default namespace. Override the value specified in the configuration file.
|
|
201
201
|
|
|
202
|
-
--root Save the
|
|
202
|
+
--root Save the datapack & resource pack in the .minecraft/datapacks &
|
|
203
203
|
.minecraft/resource_packs folders. Override the value specified in the configuration
|
|
204
204
|
file.
|
|
205
205
|
|
|
206
206
|
--serverPath=serverPath Path of the server folder. Override the value specified in the configuration file.
|
|
207
207
|
|
|
208
|
-
--strictErrors Stop
|
|
208
|
+
--strictErrors Stop datapack compilation on type errors.
|
|
209
209
|
|
|
210
|
-
--world=world The world to save the
|
|
210
|
+
--world=world The world to save the datapack in. Override the value specified in the configuration
|
|
211
211
|
file.
|
|
212
212
|
|
|
213
213
|
EXAMPLES
|
|
@@ -216,5 +216,5 @@ EXAMPLES
|
|
|
216
216
|
$ sand watch --verbose --dry
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
_See code: [src/commands/watch.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.
|
|
219
|
+
_See code: [src/commands/watch.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/watch.ts)_
|
|
220
220
|
<!-- commandsstop -->
|
|
@@ -401,16 +401,21 @@ async function _buildProject(cliOptions, { absProjectFolder, rootFolder, sandsto
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
async function archiveOutput(packType) {
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
404
|
+
const input = path_1.default.join(outputFolder, packType.type);
|
|
405
|
+
if ((await fs_extra_1.default.readdir(input)).length !== 0) {
|
|
406
|
+
const archive = new adm_zip_1.default();
|
|
407
|
+
await archive.addLocalFolderPromise(input, {});
|
|
408
|
+
await archive.writeZipPromise(`${path_1.default.join(outputFolder, 'archives', `${packName}_${packType.type}`)}.zip`, { overwrite: true });
|
|
409
|
+
return true;
|
|
410
|
+
}
|
|
411
|
+
return false;
|
|
408
412
|
}
|
|
409
413
|
// TODO: implement linking to make the cache more useful when not archiving.
|
|
410
414
|
if (!cliOptions.production) {
|
|
411
415
|
for await (const _packType of packTypes) {
|
|
412
416
|
const packType = _packType[1];
|
|
413
|
-
const outputPath = path_1.default.join(
|
|
417
|
+
const outputPath = path_1.default.join(outputFolder, packType.type);
|
|
418
|
+
await fs_extra_1.default.ensureDir(outputPath);
|
|
414
419
|
if (packType.handleOutput) {
|
|
415
420
|
await packType.handleOutput('output', async (relativePath, encoding = 'utf8') => await fs_extra_1.default.readFile(path_1.default.join(outputPath, relativePath), encoding), async (relativePath, contents) => {
|
|
416
421
|
if (contents === undefined) {
|
|
@@ -422,8 +427,9 @@ async function _buildProject(cliOptions, { absProjectFolder, rootFolder, sandsto
|
|
|
422
427
|
});
|
|
423
428
|
}
|
|
424
429
|
handleResources(packType.type);
|
|
430
|
+
let archivedOutput = false;
|
|
425
431
|
if (packType.archiveOutput) {
|
|
426
|
-
archiveOutput(packType);
|
|
432
|
+
archivedOutput = await archiveOutput(packType);
|
|
427
433
|
}
|
|
428
434
|
// Handle client
|
|
429
435
|
if (!(server && packType.networkSides === 'server')) {
|
|
@@ -447,7 +453,9 @@ async function _buildProject(cliOptions, { absProjectFolder, rootFolder, sandsto
|
|
|
447
453
|
catch { }
|
|
448
454
|
}
|
|
449
455
|
if (packType.archiveOutput) {
|
|
450
|
-
|
|
456
|
+
if (archivedOutput) {
|
|
457
|
+
await fs_extra_1.default.copyFile(`${path_1.default.join(outputFolder, 'archives', `${packName}_${packType.type}`)}.zip`, `${fullClientPath}.zip`);
|
|
458
|
+
}
|
|
451
459
|
}
|
|
452
460
|
else {
|
|
453
461
|
await fs_extra_1.default.remove(fullClientPath);
|
|
@@ -471,7 +479,7 @@ async function _buildProject(cliOptions, { absProjectFolder, rootFolder, sandsto
|
|
|
471
479
|
serverPath = serverPath.replace('$packName$', packName);
|
|
472
480
|
}
|
|
473
481
|
catch { }
|
|
474
|
-
if (packType.archiveOutput) {
|
|
482
|
+
if (packType.archiveOutput && archivedOutput) {
|
|
475
483
|
await server.writeFile(await fs_extra_1.default.readFile(`${outputPath}.zip`, 'utf8'), `${serverPath}.zip`);
|
|
476
484
|
}
|
|
477
485
|
else {
|
|
@@ -488,7 +496,7 @@ async function _buildProject(cliOptions, { absProjectFolder, rootFolder, sandsto
|
|
|
488
496
|
}
|
|
489
497
|
else {
|
|
490
498
|
for await (const packType of packTypes) {
|
|
491
|
-
const outputPath = path_1.default.join(
|
|
499
|
+
const outputPath = path_1.default.join(outputFolder, packType.type);
|
|
492
500
|
if (packType.handleOutput) {
|
|
493
501
|
await packType.handleOutput('output', async (relativePath, encoding = 'utf8') => await fs_extra_1.default.readFile(path_1.default.join(outputPath, relativePath), encoding), async (relativePath, contents) => {
|
|
494
502
|
if (contents === undefined) {
|
package/lib/commands/create.js
CHANGED
|
@@ -31,7 +31,7 @@ class Create extends command_1.Command {
|
|
|
31
31
|
type: 'input',
|
|
32
32
|
default: false,
|
|
33
33
|
})) === true ? 'library' : 'pack';
|
|
34
|
-
const versions = [['0.13.6', '0.5.4'], ['0.14.0-alpha.13', '0.5.4'], ['0.14.0-alpha.
|
|
34
|
+
const versions = [['0.13.6', '0.5.4'], ['0.14.0-alpha.13', '0.5.4'], ['0.14.0-alpha.20', '0.6.5']];
|
|
35
35
|
const stableIndex = 0;
|
|
36
36
|
const { sandstoneVersion } = await inquirer_1.default.prompt({
|
|
37
37
|
name: 'sandstoneVersion',
|
|
@@ -129,13 +129,13 @@ class Create extends command_1.Command {
|
|
|
129
129
|
const exec = (cmd) => (0, child_process_1.execSync)(cmd, { cwd: projectPath });
|
|
130
130
|
exec('git clone https://github.com/sandstone-mc/sandstone-template.git .');
|
|
131
131
|
exec(`git checkout ${projectType}-${sandstoneVersion[0]}`);
|
|
132
|
-
exec('
|
|
132
|
+
exec('npx rimraf -rf .git');
|
|
133
133
|
exec(`${useYarn ? 'yarn' : 'npm'} install`);
|
|
134
134
|
// TODO: Make profiles for either packs or libraries
|
|
135
135
|
const configPath = path_1.default.join(projectPath, `${projectType === 'library' ? 'test/' : ''}sandstone.config.ts`);
|
|
136
136
|
// Merge with the config values
|
|
137
137
|
let templateConfig = await fs_extra_1.default.readFile(configPath, 'utf8');
|
|
138
|
-
templateConfig = templateConfig.replace('packUid: \'kZZpDK67\'', `packUid:
|
|
138
|
+
templateConfig = templateConfig.replace('packUid: \'kZZpDK67\'', `packUid: ${toJson((0, nanoid_1.nanoid)(8))}`);
|
|
139
139
|
let _name = packName;
|
|
140
140
|
let _namespace = namespace;
|
|
141
141
|
if (projectType === 'library') {
|
|
@@ -173,7 +173,7 @@ Create.flags = {
|
|
|
173
173
|
version: command_1.flags.string({ char: 'v', env: 'SANDSTONE_VERSION', description: 'What version of Sandstone you\'d like to create a project for.' }),
|
|
174
174
|
'pack-name': command_1.flags.string({ char: 'd', env: 'PACK_NAME', description: 'The name of the pack(s).' }),
|
|
175
175
|
namespace: command_1.flags.string({ char: 'n', env: 'NAMESPACE', description: 'The default namespace that will be used.' }),
|
|
176
|
-
'save-root': command_1.flags.boolean({ char: 'r', env: 'SAVE_ROOT', description: 'Save the
|
|
176
|
+
'save-root': command_1.flags.boolean({ char: 'r', env: 'SAVE_ROOT', description: 'Save the datapack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Not compatible with --world.', exclusive: ['world'] }),
|
|
177
177
|
world: command_1.flags.string({ char: 'w', env: 'WORLD', description: 'The world to save the packs in. Not compatible with --save-root or --server', exclusive: ['save-root', 'server'] }),
|
|
178
178
|
'server-path': command_1.flags.string({ char: 's', env: 'SERVER_PATH', description: 'The server path to write the server-side packs at. Not compatible with --world.', exclusive: ['world'] }),
|
|
179
179
|
'client-path': command_1.flags.string({ char: 'c', env: 'CLIENT_PATH', description: 'The client path to write packs at.' }),
|
package/lib/commands/watch.js
CHANGED
|
@@ -25,7 +25,7 @@ class Watch extends command_1.Command {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
catch (e) {
|
|
28
|
-
console.log(chalk_1.default.rgb(255, 204, 0) `Failed to connect to localhost:${flags.autoReload}. The
|
|
28
|
+
console.log(chalk_1.default.rgb(255, 204, 0) `Failed to connect to localhost:${flags.autoReload}. The datapack won't be auto reloaded.`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
const folders = (0, utils_1.getProjectFolders)(args.path);
|
|
@@ -84,18 +84,18 @@ Watch.flags = {
|
|
|
84
84
|
dry: command_1.flags.boolean({ char: 'd', description: 'Do not save the pack. Mostly useful with `verbose`.' }),
|
|
85
85
|
verbose: command_1.flags.boolean({ char: 'v', description: 'Log all resulting resources: functions, advancements...' }),
|
|
86
86
|
namespace: command_1.flags.string({ description: 'The default namespace. Override the value specified in the configuration file.' }),
|
|
87
|
-
world: command_1.flags.string({ description: 'The world to save the
|
|
88
|
-
root: command_1.flags.boolean({ description: 'Save the
|
|
87
|
+
world: command_1.flags.string({ description: 'The world to save the datapack in. Override the value specified in the configuration file.' }),
|
|
88
|
+
root: command_1.flags.boolean({ description: 'Save the datapack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Override the value specified in the configuration file.' }),
|
|
89
89
|
clientPath: command_1.flags.string({ name: 'client-path', description: 'Path of the client folder. Override the value specified in the configuration file.' }),
|
|
90
90
|
serverPath: command_1.flags.string({ name: 'server-path', description: 'Path of the server folder. Override the value specified in the configuration file.' }),
|
|
91
91
|
// TODO: ssh
|
|
92
|
-
name: command_1.flags.string({ description: 'Name of the
|
|
93
|
-
description: command_1.flags.string({ description: 'Description of the
|
|
92
|
+
name: command_1.flags.string({ description: 'Name of the datapack. Override the value specified in the configuration file.' }),
|
|
93
|
+
description: command_1.flags.string({ description: 'Description of the datapack. Override the value specified in the configuration file.' }),
|
|
94
94
|
formatVersion: command_1.flags.integer({ name: 'format', description: 'Pack format version. Override the value specified in the configuration file.' }),
|
|
95
95
|
fullTrace: command_1.flags.boolean({ name: 'full-trace', description: 'Show the full stack trace on errors.' }),
|
|
96
|
-
strictErrors: command_1.flags.boolean({ description: 'Stop
|
|
96
|
+
strictErrors: command_1.flags.boolean({ description: 'Stop datapack compilation on type errors.', default: false }),
|
|
97
97
|
production: command_1.flags.boolean({ char: 'p', description: 'Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to "production".', default: false }),
|
|
98
|
-
autoReload: command_1.flags.integer({ description: 'Automatically reload your
|
|
98
|
+
autoReload: command_1.flags.integer({ description: 'Automatically reload your datapack in-game. Requires to open the world to LAN with cheats enabled, and to specify the port.', helpValue: 'port' }),
|
|
99
99
|
};
|
|
100
100
|
Watch.args = [{
|
|
101
101
|
name: 'path',
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.
|
|
1
|
+
{"version":"0.6.5","commands":{"build":{"id":"build","description":"Build the packs. ⛏","pluginName":"sandstone-cli","pluginType":"core","aliases":[],"examples":["$ sand build","$ sand build --verbose","$ sand build --verbose --dry"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry":{"name":"dry","type":"boolean","char":"d","description":"Do not save the pack. Mostly useful with `verbose`.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Log all resulting resources: functions, advancements...","allowNo":false},"namespace":{"name":"namespace","type":"option","description":"The default namespace. Override the value specified in the configuration file."},"world":{"name":"world","type":"option","description":"The world to save the datapack in. Override the value specified in the configuration file."},"root":{"name":"root","type":"boolean","description":"Save the datapack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Override the value specified in the configuration file.","allowNo":false},"clientPath":{"name":"clientPath","type":"option","description":"Path of the client folder. Override the value specified in the configuration file."},"serverPath":{"name":"serverPath","type":"option","description":"Path of the server folder. Override the value specified in the configuration file."},"name":{"name":"name","type":"option","description":"Name of the datapack. Override the value specified in the configuration file."},"description":{"name":"description","type":"option","description":"Description of the datapack. Override the value specified in the configuration file."},"formatVersion":{"name":"formatVersion","type":"option","description":"Pack format version. Override the value specified in the configuration file."},"fullTrace":{"name":"fullTrace","type":"boolean","description":"Show the full stack trace on errors.","allowNo":false},"strictErrors":{"name":"strictErrors","type":"boolean","description":"Stop datapack compilation on type errors.","allowNo":false},"production":{"name":"production","type":"boolean","char":"p","description":"Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to \"production\".","allowNo":false},"autoReload":{"name":"autoReload","type":"option","description":"Automatically reload your datapack in-game. Requires to open the world to LAN with cheats enabled, and to specify the port.","helpValue":"port"}},"args":[{"name":"path","description":"Path of the folder containing source files.","required":true,"default":"./src"},{"name":"config-path","description":"Path of the sandstone.config.ts folder.","required":true,"default":"."}]},"create":{"id":"create","description":"Create a new Sandstone project.","pluginName":"sandstone-cli","pluginType":"core","aliases":[],"examples":["$ sand create my-pack"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"yarn":{"name":"yarn","type":"boolean","description":"Use yarn instead of npm.","allowNo":false},"npm":{"name":"npm","type":"boolean","description":"Use npm.","allowNo":false},"library":{"name":"library","type":"boolean","char":"t","description":"Whether the project will be a library for use in other Sandstone projects.","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"What version of Sandstone you'd like to create a project for."},"pack-name":{"name":"pack-name","type":"option","char":"d","description":"The name of the pack(s)."},"namespace":{"name":"namespace","type":"option","char":"n","description":"The default namespace that will be used."},"save-root":{"name":"save-root","type":"boolean","char":"r","description":"Save the datapack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Not compatible with --world.","allowNo":false},"world":{"name":"world","type":"option","char":"w","description":"The world to save the packs in. Not compatible with --save-root or --server"},"server-path":{"name":"server-path","type":"option","char":"s","description":"The server path to write the server-side packs at. Not compatible with --world."},"client-path":{"name":"client-path","type":"option","char":"c","description":"The client path to write packs at."}},"args":[{"name":"project-name","description":"Name of the project folder. This is not the name of the output pack(s).","required":true}]},"update":{"id":"update","description":"Update Sandstone & Sandstone-CLI.","pluginName":"sandstone-cli","pluginType":"core","aliases":[],"examples":["$ sand update","$ sand update --cli","$ sand update --sandstone","$ sand update --cli --sandstone --skip"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"cli":{"name":"cli","type":"boolean","description":"Update the Sandstone CLI without asking.","allowNo":false},"sandstone":{"name":"sandstone","type":"boolean","description":"Update the current Sandstone version without asking.","allowNo":false},"skip":{"name":"skip","type":"boolean","description":"Skip all interactive prompts and refuse them.","allowNo":false},"yarn":{"name":"yarn","type":"boolean","description":"Use yarn to install the updates.","allowNo":false},"npm":{"name":"npm","type":"boolean","description":"Use npm to install the updates.","allowNo":false}},"args":[]},"watch":{"id":"watch","description":"Build the packs, and rebuild them on file change. ⛏","pluginName":"sandstone-cli","pluginType":"core","aliases":[],"examples":["$ sand watch","$ sand watch --verbose","$ sand watch --verbose --dry"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry":{"name":"dry","type":"boolean","char":"d","description":"Do not save the pack. Mostly useful with `verbose`.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Log all resulting resources: functions, advancements...","allowNo":false},"namespace":{"name":"namespace","type":"option","description":"The default namespace. Override the value specified in the configuration file."},"world":{"name":"world","type":"option","description":"The world to save the datapack in. Override the value specified in the configuration file."},"root":{"name":"root","type":"boolean","description":"Save the datapack & resource pack in the .minecraft/datapacks & .minecraft/resource_packs folders. Override the value specified in the configuration file.","allowNo":false},"clientPath":{"name":"clientPath","type":"option","description":"Path of the client folder. Override the value specified in the configuration file."},"serverPath":{"name":"serverPath","type":"option","description":"Path of the server folder. Override the value specified in the configuration file."},"name":{"name":"name","type":"option","description":"Name of the datapack. Override the value specified in the configuration file."},"description":{"name":"description","type":"option","description":"Description of the datapack. Override the value specified in the configuration file."},"formatVersion":{"name":"formatVersion","type":"option","description":"Pack format version. Override the value specified in the configuration file."},"fullTrace":{"name":"fullTrace","type":"boolean","description":"Show the full stack trace on errors.","allowNo":false},"strictErrors":{"name":"strictErrors","type":"boolean","description":"Stop datapack compilation on type errors.","allowNo":false},"production":{"name":"production","type":"boolean","char":"p","description":"Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to \"production\".","allowNo":false},"autoReload":{"name":"autoReload","type":"option","description":"Automatically reload your datapack in-game. Requires to open the world to LAN with cheats enabled, and to specify the port.","helpValue":"port"}},"args":[{"name":"path","description":"Path of the folder containing source files.","required":true,"default":"./src"},{"name":"config-path","description":"Path of the sandstone.config.ts folder.","required":true,"default":"."}]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sandstone-cli",
|
|
3
|
-
"description": "The CLI for Sandstone - the
|
|
4
|
-
"version": "0.6.
|
|
3
|
+
"description": "The CLI for Sandstone - the datapack creation library.",
|
|
4
|
+
"version": "0.6.5",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "TheMrZZ - Florian ERNST",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@oclif/plugin-warn-if-update-available": "^1.7.0",
|
|
25
25
|
"@types/adm-zip": "^0.5.0",
|
|
26
26
|
"@types/delete-empty": "^3.0.2",
|
|
27
|
-
"@types/node": "^18.14.
|
|
27
|
+
"@types/node": "^18.14.6",
|
|
28
28
|
"@types/semver": "^7.3.4",
|
|
29
29
|
"adm-zip": "^0.5.10",
|
|
30
30
|
"chalk": "^4.1.0",
|