create-manifest 1.1.6 → 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.
@@ -2,6 +2,8 @@
2
2
  "name": "PROJECT_NAME",
3
3
  "version": "0.1.0",
4
4
  "description": "A backend made with Manifest: https://manifest.build",
5
+ "private": true,
6
+ "license": "UNLICENSED",
5
7
  "scripts": {},
6
8
  "dependencies": {}
7
9
  }
@@ -39,16 +39,16 @@ export default class CreateManifest extends Command {
39
39
  /**
40
40
  * Wait for the server to be ready.
41
41
  *
42
- * @returns {Promise<void>} - Returns a promise that resolves to void when the server is ready.
42
+ * @returns a promise that resolves to void when the server is ready.
43
43
  *
44
44
  **/
45
45
  waitForServerToBeReady(): Promise<void>;
46
46
  /**
47
47
  * Transform a JSON with comments to a JSON without comments.
48
48
  *
49
- * @param {string} jsonWithComments - The JSON with comments.
49
+ * @param jsonString - The JSON with comments.
50
50
  *
51
- * @returns {string} - The JSON without comments.
51
+ * @returns the JSON without comments.
52
52
  *
53
53
  **/
54
54
  removeComments(jsonString: string): string;
@@ -239,7 +239,7 @@ export default class CreateManifest extends Command {
239
239
  let serveTask = null;
240
240
  try {
241
241
  // We run the manifest script to build the database.
242
- serveTask = exec('npm run manifest');
242
+ serveTask = exec(`cd ${projectName} && npm run manifest`);
243
243
  await this.waitForServerToBeReady();
244
244
  spinner.succeed();
245
245
  }
@@ -248,7 +248,7 @@ export default class CreateManifest extends Command {
248
248
  }
249
249
  spinner.start('Seed initial data...');
250
250
  try {
251
- await exec('npm run manifest:seed');
251
+ await exec(`cd ${projectName} && npm run manifest:seed`);
252
252
  }
253
253
  catch (error) {
254
254
  spinner.fail(`Execution error: ${error}`);
@@ -280,7 +280,7 @@ export default class CreateManifest extends Command {
280
280
  /**
281
281
  * Wait for the server to be ready.
282
282
  *
283
- * @returns {Promise<void>} - Returns a promise that resolves to void when the server is ready.
283
+ * @returns a promise that resolves to void when the server is ready.
284
284
  *
285
285
  **/
286
286
  async waitForServerToBeReady() {
@@ -295,9 +295,9 @@ export default class CreateManifest extends Command {
295
295
  /**
296
296
  * Transform a JSON with comments to a JSON without comments.
297
297
  *
298
- * @param {string} jsonWithComments - The JSON with comments.
298
+ * @param jsonString - The JSON with comments.
299
299
  *
300
- * @returns {string} - The JSON without comments.
300
+ * @returns the JSON without comments.
301
301
  *
302
302
  **/
303
303
  removeComments(jsonString) {
@@ -33,5 +33,5 @@
33
33
  "enableJsonFlag": false
34
34
  }
35
35
  },
36
- "version": "1.1.6"
36
+ "version": "1.1.8"
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-manifest",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "author": "Manifest",
5
5
  "description": "Create a new Manifest backend",
6
6
  "homepage": "https://manifest.build",