mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 12:57:47 +00:00
[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:
14
packages/now-build-utils/test/unit.test.js
vendored
14
packages/now-build-utils/test/unit.test.js
vendored
@@ -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',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user