[now-static-build] Add support buildCommand, devCommand and outputDirectory (#3422)

* [now-static-build] Handle `buildCommand`, `devCommand` and `outputDirectory`

* Adjust tests

* Swap order

* Add `node_modules/.bin` to PATH

* Remove @types/execa

* Append PATH only to spawn options

* Remove test check

* Only add when there is a command
This commit is contained in:
Andy
2019-12-13 19:30:09 +01:00
committed by GitHub
parent 68deab9007
commit 5a6d1a135f
19 changed files with 352 additions and 24 deletions

View File

@@ -497,6 +497,10 @@ describe('Test `detectBuilders`', () => {
config: {
zeroConfig: true,
buildCommand: 'yarn build',
framework: {
slug: 'next',
version: '9.0.0',
},
functions: {
'pages/api/teams/**': {
memory: 128,
@@ -564,6 +568,10 @@ describe('Test `detectBuilders`', () => {
config: {
zeroConfig: true,
buildCommand: 'yarn build',
framework: {
slug: 'next',
version: '9.0.0',
},
},
});
});
@@ -905,8 +913,12 @@ describe('Test `detectBuilders`', () => {
use: '@now/next',
src: 'package.json',
config: {
buildCommand: 'yarn build',
zeroConfig: true,
buildCommand: 'yarn build',
framework: {
slug: 'next',
version: '9.0.0',
},
},
});