mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 12:57:47 +00:00
[cli] Fix failing tests after Node 18 default change (#8950)
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^16.8.6",
|
"react": "18.2.0",
|
||||||
"react-dom": "^16.8.6",
|
"react-dom": "18.2.0",
|
||||||
"react-scripts": "3.0.1"
|
"react-scripts": "5.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -8,5 +8,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gridsome": "0.7.23"
|
"gridsome": "0.7.23"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "14.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
"build": "next build"
|
"build": "next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^9.0.0",
|
"next": "13.0.4",
|
||||||
"react": "^16.7.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "^16.7.0"
|
"react-dom": "18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "9.5.3",
|
"next": "13.0.4",
|
||||||
"react": "16.13.1",
|
"react": "18.2.0",
|
||||||
"react-dom": "16.13.1"
|
"react-dom": "18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,8 @@
|
|||||||
"build": "next build"
|
"build": "next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^9.1.1",
|
"next": "13.0.4",
|
||||||
"react": "^16.7.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "^16.7.0"
|
"react-dom": "18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,5 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^9.3.4",
|
"next": "13.0.4",
|
||||||
"react": "^16.13.1",
|
"react": "18.2.0",
|
||||||
"react-dom": "^16.13.1"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "14.0.9",
|
"@types/node": "18.x",
|
||||||
"@types/react": "^16.9.32",
|
"@types/react": "18.0.25",
|
||||||
"typescript": "^3.8.3"
|
"typescript": "4.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"@components/*": ["components/*"],
|
"@components/*": ["components/*"],
|
||||||
"@lib/*": ["lib/*"]
|
"@lib/*": ["lib/*"]
|
||||||
}
|
},
|
||||||
|
"incremental": true
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "api"],
|
"exclude": ["node_modules", "api"],
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,5 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^9.3.4",
|
"next": "13.0.4",
|
||||||
"react": "^16.13.1",
|
"react": "18.2.0",
|
||||||
"react-dom": "^16.13.1"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "14.0.9",
|
"@types/node": "18.x",
|
||||||
"@types/react": "^16.9.32",
|
"@types/react": "18.0.25",
|
||||||
"typescript": "^3.8.3"
|
"typescript": "4.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
4
packages/cli/test/fixtures/unit/commands/build/lambda-with-128-memory/package.json
vendored
Normal file
4
packages/cli/test/fixtures/unit/commands/build/lambda-with-128-memory/package.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"name": "lambda-with-128-memory",
|
||||||
|
"private": true
|
||||||
|
}
|
||||||
@@ -1 +1,7 @@
|
|||||||
{ "functions": { "api/**/*.js": { "memory": 128 } } }
|
{
|
||||||
|
"functions": {
|
||||||
|
"api/**/*.js": {
|
||||||
|
"memory": 128
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -949,7 +949,6 @@ describe('build', () => {
|
|||||||
);
|
);
|
||||||
expect(vcConfig).toMatchObject({
|
expect(vcConfig).toMatchObject({
|
||||||
handler: 'api/memory.js',
|
handler: 'api/memory.js',
|
||||||
runtime: 'nodejs16.x',
|
|
||||||
memory: 128,
|
memory: 128,
|
||||||
environment: {},
|
environment: {},
|
||||||
launcherType: 'Nodejs',
|
launcherType: 'Nodejs',
|
||||||
|
|||||||
Reference in New Issue
Block a user