@vercel/build-utils 2.16.1-canary.2 → 2.17.0
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/fs/node-version.d.ts +3 -3
- package/dist/fs/node-version.js +1 -0
- package/dist/fs/run-user-scripts.js +0 -4
- package/dist/index.js +65 -4
- package/package.json +3 -3
@@ -1,8 +1,8 @@
|
|
1
1
|
import { NodeVersion } from '../types';
|
2
2
|
export declare function getLatestNodeVersion(): {
|
3
|
-
readonly major:
|
4
|
-
readonly range: "
|
5
|
-
readonly runtime: "
|
3
|
+
readonly major: 16;
|
4
|
+
readonly range: "16.x";
|
5
|
+
readonly runtime: "nodejs16.x";
|
6
6
|
};
|
7
7
|
export declare function getDiscontinuedNodeVersions(): NodeVersion[];
|
8
8
|
export declare function getSupportedNodeVersion(engineRange: string | undefined, isAuto?: boolean): Promise<NodeVersion>;
|
package/dist/fs/node-version.js
CHANGED
@@ -8,6 +8,7 @@ const semver_1 = require("semver");
|
|
8
8
|
const errors_1 = require("../errors");
|
9
9
|
const debug_1 = __importDefault(require("../debug"));
|
10
10
|
const allOptions = [
|
11
|
+
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
11
12
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
12
13
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
13
14
|
{
|
@@ -136,10 +136,6 @@ async function getNodeVersion(destPath, _nodeVersion, config = {}, meta = {}) {
|
|
136
136
|
const latest = node_version_1.getLatestNodeVersion();
|
137
137
|
return { ...latest, runtime: 'nodejs' };
|
138
138
|
}
|
139
|
-
if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
|
140
|
-
console.warn('Warning: Using experimental Node.js 16.x due to ENABLE_EXPERIMENTAL_NODE16=1');
|
141
|
-
return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
|
142
|
-
}
|
143
139
|
const { packageJson } = await scanParentDirs(destPath, true);
|
144
140
|
let { nodeVersion } = config;
|
145
141
|
let isAuto = true;
|
package/dist/index.js
CHANGED
@@ -27057,6 +27057,70 @@ exports.frameworks = [
|
|
27057
27057
|
},
|
27058
27058
|
],
|
27059
27059
|
},
|
27060
|
+
{
|
27061
|
+
name: 'Astro',
|
27062
|
+
slug: 'astro',
|
27063
|
+
demo: 'https://astro-template.vercel.app',
|
27064
|
+
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/astro.svg',
|
27065
|
+
darkModeLogo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/astro-dark.svg',
|
27066
|
+
tagline: 'Astro is a new kind of static site builder for the modern web. Powerful developer experience meets lightweight output.',
|
27067
|
+
description: 'An Astro site, using the basics starter kit.',
|
27068
|
+
website: 'https://astro.build',
|
27069
|
+
envPrefix: 'PUBLIC_',
|
27070
|
+
detectors: {
|
27071
|
+
every: [
|
27072
|
+
{
|
27073
|
+
path: 'package.json',
|
27074
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"astro":\\s*".+?"[^}]*}',
|
27075
|
+
},
|
27076
|
+
],
|
27077
|
+
},
|
27078
|
+
settings: {
|
27079
|
+
installCommand: {
|
27080
|
+
placeholder: '`yarn install` or `npm install`',
|
27081
|
+
},
|
27082
|
+
buildCommand: {
|
27083
|
+
value: 'astro build',
|
27084
|
+
placeholder: '`npm run build` or `astro build`',
|
27085
|
+
},
|
27086
|
+
devCommand: {
|
27087
|
+
value: 'astro dev --port $PORT',
|
27088
|
+
placeholder: 'astro dev',
|
27089
|
+
},
|
27090
|
+
outputDirectory: {
|
27091
|
+
value: 'dist',
|
27092
|
+
},
|
27093
|
+
},
|
27094
|
+
dependency: 'astro',
|
27095
|
+
getFsOutputDir: async () => 'dist',
|
27096
|
+
getOutputDirName: async () => 'dist',
|
27097
|
+
defaultRoutes: [
|
27098
|
+
{
|
27099
|
+
src: '^/dist/(.*)$',
|
27100
|
+
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
27101
|
+
continue: true,
|
27102
|
+
},
|
27103
|
+
{
|
27104
|
+
handle: 'filesystem',
|
27105
|
+
},
|
27106
|
+
{
|
27107
|
+
src: '/(.*)',
|
27108
|
+
dest: '/index.html',
|
27109
|
+
},
|
27110
|
+
],
|
27111
|
+
defaultHeaders: [
|
27112
|
+
{
|
27113
|
+
source: '^/dist/(.*)$',
|
27114
|
+
regex: '^/dist/(.*)$',
|
27115
|
+
headers: [
|
27116
|
+
{
|
27117
|
+
key: 'cache-control',
|
27118
|
+
value: 'public, max-age=31536000, immutable',
|
27119
|
+
},
|
27120
|
+
],
|
27121
|
+
},
|
27122
|
+
],
|
27123
|
+
},
|
27060
27124
|
{
|
27061
27125
|
name: 'Hexo',
|
27062
27126
|
slug: 'hexo',
|
@@ -34699,6 +34763,7 @@ const semver_1 = __webpack_require__(2879);
|
|
34699
34763
|
const errors_1 = __webpack_require__(3983);
|
34700
34764
|
const debug_1 = __importDefault(__webpack_require__(1868));
|
34701
34765
|
const allOptions = [
|
34766
|
+
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
34702
34767
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
34703
34768
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
34704
34769
|
{
|
@@ -34998,10 +35063,6 @@ async function getNodeVersion(destPath, _nodeVersion, config = {}, meta = {}) {
|
|
34998
35063
|
const latest = node_version_1.getLatestNodeVersion();
|
34999
35064
|
return { ...latest, runtime: 'nodejs' };
|
35000
35065
|
}
|
35001
|
-
if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
|
35002
|
-
console.warn('Warning: Using experimental Node.js 16.x due to ENABLE_EXPERIMENTAL_NODE16=1');
|
35003
|
-
return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
|
35004
|
-
}
|
35005
35066
|
const { packageJson } = await scanParentDirs(destPath, true);
|
35006
35067
|
let { nodeVersion } = config;
|
35007
35068
|
let isAuto = true;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.17.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.js",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@types/node-fetch": "^2.1.6",
|
31
31
|
"@types/semver": "6.0.0",
|
32
32
|
"@types/yazl": "2.4.2",
|
33
|
-
"@vercel/frameworks": "0.
|
33
|
+
"@vercel/frameworks": "0.9.0",
|
34
34
|
"@vercel/ncc": "0.24.0",
|
35
35
|
"aggregate-error": "3.0.1",
|
36
36
|
"async-retry": "1.2.3",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"typescript": "4.3.4",
|
50
50
|
"yazl": "2.5.1"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "15c7ad241a44d037ceed0101b89e3a73f09fab2b"
|
53
53
|
}
|