sandstone-cli 1.1.7 → 1.1.8

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.
@@ -102,7 +102,7 @@ export async function createCommand(_project, opts) {
102
102
  }
103
103
  else if (saveChoice === 'world') {
104
104
  const { world } = await inquirer.prompt({
105
- name: 'World',
105
+ name: 'world',
106
106
  message: 'What world do you want to save the packs in? >',
107
107
  type: 'list',
108
108
  choices: getWorldsList,
@@ -111,7 +111,7 @@ export async function createCommand(_project, opts) {
111
111
  }
112
112
  else { // TODO: Add native folder selector
113
113
  const { serverPath } = await inquirer.prompt({
114
- name: 'Server path',
114
+ name: 'serverPath',
115
115
  message: 'Where is the server to save the packs in? Relative paths are accepted. >',
116
116
  type: 'input',
117
117
  });
@@ -155,6 +155,7 @@ export async function createCommand(_project, opts) {
155
155
  templateConfig = templateConfig.replace('namespace: \'default\'', `namespace: ${toJson(namespace)}`);
156
156
  // TODO: packFormat
157
157
  const optsJson = toJson(Object.fromEntries(Object.entries(saveOptions).filter(([_, value]) => value !== undefined)));
158
+ console.log(saveOptions, optsJson);
158
159
  if (optsJson !== '{}') {
159
160
  templateConfig = templateConfig.replace('saveOptions: {}', `saveOptions: ${optsJson}`);
160
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandstone-cli",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "The CLI for Sandstone - the minecraft pack creation library.",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "homepage": "https://github.com/sandstone-mc/sandstone-cli#readme",
43
43
  "dependencies": {
44
- "@types/node": "^20.8.9",
44
+ "@types/node": "^20.9.0",
45
45
  "chalk": "^5.3.0",
46
46
  "chalk-template": "^1.1.0",
47
47
  "chokidar": "^3.5.3",
@@ -134,7 +134,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
134
134
  saveOptions.root = true
135
135
  } else if (saveChoice === 'world') {
136
136
  const { world }: { world: string } = await inquirer.prompt({
137
- name: 'World',
137
+ name: 'world',
138
138
  message: 'What world do you want to save the packs in? >',
139
139
  type: 'list',
140
140
  choices: getWorldsList,
@@ -142,7 +142,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
142
142
  saveOptions.world = world
143
143
  } else { // TODO: Add native folder selector
144
144
  const { serverPath }: { serverPath: string } = await inquirer.prompt({
145
- name: 'Server path',
145
+ name: 'serverPath',
146
146
  message: 'Where is the server to save the packs in? Relative paths are accepted. >',
147
147
  type: 'input',
148
148
  })
@@ -206,6 +206,8 @@ export async function createCommand(_project: string, opts: CreateOptions) {
206
206
 
207
207
  const optsJson = toJson(Object.fromEntries(Object.entries(saveOptions).filter(([_, value]) => value !== undefined)))
208
208
 
209
+ console.log(saveOptions, optsJson)
210
+
209
211
  if (optsJson !== '{}') {
210
212
  templateConfig = templateConfig.replace('saveOptions: {}', `saveOptions: ${optsJson}`)
211
213
  }