Skip to content

Commit ce6a094

Browse files
committed
fix: pass explicit set of nodeOptions to generate:manifest command
1 parent 9cb9dec commit ce6a094

File tree

6 files changed

+66
-30
lines changed

6 files changed

+66
-30
lines changed

npm-audit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h5 class="card-title">
5555
<div class="card">
5656
<div class="card-body">
5757
<h5 class="card-title">
58-
October 4th 2020, 9:30:57 am
58+
October 4th 2020, 10:10:48 am
5959
</h5>
6060
<p class="card-text">Last updated</p>
6161
</div>

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"np": "^6.5.0",
6565
"npm-audit-html": "^1.4.3",
6666
"prettier": "^2.1.2",
67+
"ts-node": "^9.0.0",
6768
"typescript": "^4.0.3"
6869
},
6970
"nyc": {

src/Compiler/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@ export class Compiler {
162162
*/
163163
await this.copyAdonisRcFile(config.options.outDir!)
164164

165-
/**
166-
* Generate commands manifest
167-
*/
168-
169165
/**
170166
* Manifest instance to generate ace manifest file
171167
*/

src/Manifest/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export class Manifest {
5151
try {
5252
const response = await execa.node('ace', ['generate:manifest'], {
5353
buffer: true,
54+
nodeOptions: [],
5455
cwd: this.appRoot,
5556
env: {
5657
FORCE_COLOR: 'true',

test/compiler.spec.ts

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,22 @@ test.group('Compiler', (group) => {
6969
)
7070

7171
assert.deepEqual(hasFiles, [true, true, true, true, true])
72+
7273
assert.deepEqual(ui.testingRenderer.logs, [
7374
{
74-
message: `${info} cleaning up build directory dim(yellow((build)))`,
75+
message: `${info} cleaning up dim(yellow("./build")) directory`,
7576
stream: 'stdout',
7677
},
7778
{
7879
message: `${info} compiling typescript source files`,
7980
stream: 'stdout',
8081
},
8182
{
82-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build)))`,
83+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build)) }`,
8384
stream: 'stdout',
8485
},
8586
{
86-
message: `${info} copy (yellow(.adonisrc.json => build))`,
87+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
8788
stream: 'stdout',
8889
},
8990
{
@@ -135,19 +136,19 @@ test.group('Compiler', (group) => {
135136
assert.deepEqual(hasFiles, [true, true, true, true])
136137
assert.deepEqual(ui.testingRenderer.logs, [
137138
{
138-
message: `${info} cleaning up build directory dim(yellow((build)))`,
139+
message: `${info} cleaning up dim(yellow("./build")) directory`,
139140
stream: 'stdout',
140141
},
141142
{
142143
message: `${info} compiling typescript source files`,
143144
stream: 'stdout',
144145
},
145146
{
146-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build)))`,
147+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build)) }`,
147148
stream: 'stdout',
148149
},
149150
{
150-
message: `${info} copy (yellow(.adonisrc.json => build))`,
151+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
151152
stream: 'stdout',
152153
},
153154
{
@@ -198,19 +199,19 @@ test.group('Compiler', (group) => {
198199
assert.deepEqual(hasFiles, [true, true, true, true])
199200
assert.deepEqual(ui.testingRenderer.logs, [
200201
{
201-
message: `${info} cleaning up build directory dim(yellow((build)))`,
202+
message: `${info} cleaning up dim(yellow("./build")) directory`,
202203
stream: 'stdout',
203204
},
204205
{
205206
message: `${info} compiling typescript source files`,
206207
stream: 'stdout',
207208
},
208209
{
209-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build)))`,
210+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build)) }`,
210211
stream: 'stdout',
211212
},
212213
{
213-
message: `${info} copy (yellow(.adonisrc.json => build))`,
214+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
214215
stream: 'stdout',
215216
},
216217
{
@@ -261,19 +262,19 @@ test.group('Compiler', (group) => {
261262
assert.deepEqual(hasFiles, [true, true, true, true])
262263
assert.deepEqual(ui.testingRenderer.logs, [
263264
{
264-
message: `${info} cleaning up build directory dim(yellow((build/dist)))`,
265+
message: `${info} cleaning up dim(yellow("./build/dist")) directory`,
265266
stream: 'stdout',
266267
},
267268
{
268269
message: `${info} compiling typescript source files`,
269270
stream: 'stdout',
270271
},
271272
{
272-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build/dist)))`,
273+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build/dist)) }`,
273274
stream: 'stdout',
274275
},
275276
{
276-
message: `${info} copy (yellow(.adonisrc.json => build/dist))`,
277+
message: `${info} copy { dim(yellow(.adonisrc.json => build/dist)) }`,
277278
stream: 'stdout',
278279
},
279280
{
@@ -374,7 +375,7 @@ test.group('Compiler', (group) => {
374375

375376
assert.deepEqual(ui.testingRenderer.logs, [
376377
{
377-
message: `${info} cleaning up build directory dim(yellow((build/dist)))`,
378+
message: `${info} cleaning up dim(yellow("./build/dist")) directory`,
378379
stream: 'stdout',
379380
},
380381
{
@@ -386,11 +387,11 @@ test.group('Compiler', (group) => {
386387
stream: 'stderr',
387388
},
388389
{
389-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build/dist)))`,
390+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build/dist)) }`,
390391
stream: 'stdout',
391392
},
392393
{
393-
message: `${info} copy (yellow(.adonisrc.json => build/dist))`,
394+
message: `${info} copy { dim(yellow(.adonisrc.json => build/dist)) }`,
394395
stream: 'stdout',
395396
},
396397
{
@@ -443,7 +444,7 @@ test.group('Compiler', (group) => {
443444

444445
assert.deepEqual(ui.testingRenderer.logs, [
445446
{
446-
message: `${info} cleaning up build directory dim(yellow((build/dist)))`,
447+
message: `${info} cleaning up dim(yellow("./build/dist")) directory`,
447448
stream: 'stdout',
448449
},
449450
{
@@ -516,19 +517,19 @@ test.group('Compiler', (group) => {
516517
assert.deepEqual(hasFiles, [true, true, true, true])
517518
assert.deepEqual(ui.testingRenderer.logs, [
518519
{
519-
message: `${info} cleaning up build directory dim(yellow((build)))`,
520+
message: `${info} cleaning up dim(yellow("./build")) directory`,
520521
stream: 'stdout',
521522
},
522523
{
523524
message: `${info} compiling typescript source files`,
524525
stream: 'stdout',
525526
},
526527
{
527-
message: `${info} copy public/**/*.(js|css),ace,package.json,package-lock.json dim(yellow((build)))`,
528+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace,package.json,package-lock.json => build)) }`,
528529
stream: 'stdout',
529530
},
530531
{
531-
message: `${info} copy (yellow(.adonisrc.json => build))`,
532+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
532533
stream: 'stdout',
533534
},
534535
{
@@ -586,19 +587,19 @@ test.group('Compiler', (group) => {
586587
assert.deepEqual(hasFiles, [true, true, true, true, true])
587588
assert.deepEqual(ui.testingRenderer.logs, [
588589
{
589-
message: `${info} cleaning up build directory dim(yellow((build)))`,
590+
message: `${info} cleaning up dim(yellow("./build")) directory`,
590591
stream: 'stdout',
591592
},
592593
{
593594
message: `${info} compiling typescript source files`,
594595
stream: 'stdout',
595596
},
596597
{
597-
message: `${info} copy public/**/*.(js|css),ace dim(yellow((build)))`,
598+
message: `${info} copy { dim(yellow(public/**/*.(js|css),ace => build)) }`,
598599
stream: 'stdout',
599600
},
600601
{
601-
message: `${info} copy (yellow(.adonisrc.json => build))`,
602+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
602603
stream: 'stdout',
603604
},
604605
{
@@ -649,19 +650,19 @@ test.group('Compiler', (group) => {
649650
assert.deepEqual(hasFiles, [true, false, true])
650651
assert.deepEqual(ui.testingRenderer.logs, [
651652
{
652-
message: `${info} cleaning up build directory dim(yellow((build)))`,
653+
message: `${info} cleaning up dim(yellow("./build")) directory`,
653654
stream: 'stdout',
654655
},
655656
{
656657
message: `${info} compiling typescript source files`,
657658
stream: 'stdout',
658659
},
659660
{
660-
message: `${info} copy ace dim(yellow((build)))`,
661+
message: `${info} copy { dim(yellow(ace => build)) }`,
661662
stream: 'stdout',
662663
},
663664
{
664-
message: `${info} copy (yellow(.adonisrc.json => build))`,
665+
message: `${info} copy { dim(yellow(.adonisrc.json => build)) }`,
665666
stream: 'stdout',
666667
},
667668
{

0 commit comments

Comments
 (0)