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.
package/dist/commands/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
49
|
+
* @param jsonString - The JSON with comments.
|
|
50
50
|
*
|
|
51
|
-
* @returns
|
|
51
|
+
* @returns the JSON without comments.
|
|
52
52
|
*
|
|
53
53
|
**/
|
|
54
54
|
removeComments(jsonString: string): string;
|
package/dist/commands/index.js
CHANGED
|
@@ -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(
|
|
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(
|
|
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
|
|
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
|
|
298
|
+
* @param jsonString - The JSON with comments.
|
|
299
299
|
*
|
|
300
|
-
* @returns
|
|
300
|
+
* @returns the JSON without comments.
|
|
301
301
|
*
|
|
302
302
|
**/
|
|
303
303
|
removeComments(jsonString) {
|
package/oclif.manifest.json
CHANGED