sandstone-cli 1.2.2 → 1.2.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.
@@ -5,6 +5,7 @@ import { buildCommand } from './build.js';
5
5
  export async function watchCommand(opts) {
6
6
  let alreadyBuilding = false;
7
7
  let needRebuild = false;
8
+ // TODO: reimplement auto reload
8
9
  // let client: Client | null = null
9
10
  // TODO: add support for clients & resources that require restarts & world resets, sandstone-server should override the involved environment variables if mods are present that fix it
10
11
  /*if (flags.autoReload !== undefined) {
package/lib/index.js CHANGED
@@ -24,6 +24,7 @@ build.option.apply(build, BuildDeclares.dry)
24
24
  .option.apply(build, BuildDeclares.world)
25
25
  .option.apply(build, BuildDeclares.clientPath)
26
26
  .option.apply(build, BuildDeclares.serverPath)
27
+ .option.apply(build, BuildDeclares.enableSymlinks)
27
28
  .action(buildCommand);
28
29
  const watch = CLI
29
30
  .command('watch')
@@ -40,7 +41,8 @@ watch.option.apply(watch, BuildDeclares.dry)
40
41
  .option.apply(watch, BuildDeclares.namespace)
41
42
  .option.apply(watch, BuildDeclares.world)
42
43
  .option.apply(watch, BuildDeclares.clientPath)
43
- .option.apply(watch, BuildDeclares.serverPath);
44
+ .option.apply(watch, BuildDeclares.serverPath)
45
+ .option.apply(watch, BuildDeclares.enableSymlinks);
44
46
  const create = CLI
45
47
  .command('create')
46
48
  .description('Create a new Sandstone project. ⛏')
package/lib/shared.js CHANGED
@@ -15,5 +15,5 @@ export const BuildDeclares = {
15
15
  clientPath: ['-c, --client-path <path>', 'Path of the client folder. Override the value specified in the configuration file.'],
16
16
  serverPath: ['--server-path <path>', 'Path of the server folder. Override the value specified in the configuration file.'],
17
17
  // TODO: ssh
18
- // TODO: reimplement auto reload
18
+ enableSymlinks: ['--enable-symlinks', 'Force enable/disable symlinks. Defaults to false. Useful if you want to enable symlinks on Windows.'],
19
19
  }; // Haha TypeScript funny
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandstone-cli",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "The CLI for Sandstone - the minecraft pack creation library.",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -28,6 +28,8 @@ export async function watchCommand(opts: WatchOptions) {
28
28
  let alreadyBuilding: boolean = false
29
29
  let needRebuild: boolean = false
30
30
 
31
+ // TODO: reimplement auto reload
32
+
31
33
  // let client: Client | null = null
32
34
 
33
35
  // TODO: add support for clients & resources that require restarts & world resets, sandstone-server should override the involved environment variables if mods are present that fix it
package/src/index.ts CHANGED
@@ -30,6 +30,8 @@ build.option.apply(build, BuildDeclares.dry)
30
30
  .option.apply(build, BuildDeclares.world)
31
31
  .option.apply(build, BuildDeclares.clientPath)
32
32
  .option.apply(build, BuildDeclares.serverPath)
33
+
34
+ .option.apply(build, BuildDeclares.enableSymlinks)
33
35
  .action(buildCommand)
34
36
 
35
37
  const watch = CLI
@@ -50,6 +52,8 @@ watch.option.apply(watch, BuildDeclares.dry)
50
52
  .option.apply(watch, BuildDeclares.world)
51
53
  .option.apply(watch, BuildDeclares.clientPath)
52
54
  .option.apply(watch, BuildDeclares.serverPath)
55
+
56
+ .option.apply(watch, BuildDeclares.enableSymlinks)
53
57
 
54
58
  const create = CLI
55
59
  .command('create')
package/src/shared.ts CHANGED
@@ -15,6 +15,8 @@ export const BuildDeclares = {
15
15
  world: ['-w, --world <name>', 'The name of the world to save the packs in. Override the value specified in the configuration file.'],
16
16
  clientPath: ['-c, --client-path <path>', 'Path of the client folder. Override the value specified in the configuration file.'],
17
17
  serverPath: ['--server-path <path>', 'Path of the server folder. Override the value specified in the configuration file.'],
18
+
18
19
  // TODO: ssh
19
- // TODO: reimplement auto reload
20
+
21
+ enableSymlinks: ['--enable-symlinks', 'Force enable/disable symlinks. Defaults to false. Useful if you want to enable symlinks on Windows.'],
20
22
  } as unknown as Record<string, [string, string, RegExp, boolean]> // Haha TypeScript funny