sandstone-cli 2.0.3 → 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.
@@ -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
  }
@@ -24,7 +24,7 @@ export async function createCommand(_project, opts) {
24
24
  default: false,
25
25
  })) === true ? 'library' : 'pack';
26
26
  const sv = (v) => new SemVer(v);
27
- const versions = [[sv('1.0.0-beta.1'), sv('2.0.0')]];
27
+ const versions = [[sv('1.0.0-beta.1'), sv('2.0.4')]];
28
28
  const version = await select({
29
29
  message: 'Which version of Sandstone do you want to use? These are the only supported versions for new projects.',
30
30
  choices: versions.map((v) => {
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('1.0.0')
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.2', '-v, --version')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandstone-cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "The CLI for Sandstone - the minecraft pack creation library.",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -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
  )
@@ -42,7 +42,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
42
42
 
43
43
  const sv = (v: string) => new SemVer(v)
44
44
 
45
- const versions = [[sv('1.0.0-beta.1'), sv('2.0.0')]] as const
45
+ const versions = [[sv('1.0.0-beta.1'), sv('2.0.4')]] as const
46
46
 
47
47
  const version = await select({
48
48
  message: 'Which version of Sandstone do you want to use? These are the only supported versions for new projects.',
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('1.0.0')
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.2', '-v, --version')
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