@vercel/static-build 1.3.1 → 1.3.2
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/index.js +5 -4
- package/dist/utils/gatsby.js +4 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -241308,6 +241308,7 @@ exports.BaseFunctionConfigSchema = {
|
|
|
241308
241308
|
type: 'object',
|
|
241309
241309
|
properties: {
|
|
241310
241310
|
runtime: { type: 'string' },
|
|
241311
|
+
cron: { type: 'string' },
|
|
241311
241312
|
memory: { type: 'number' },
|
|
241312
241313
|
maxDuration: { type: 'number' },
|
|
241313
241314
|
regions: {
|
|
@@ -242600,9 +242601,8 @@ async function updateGatsbyConfig(dir, plugins) {
|
|
|
242600
242601
|
await updateGatsbyConfigJs(gatsbyConfigPathJs, plugins);
|
|
242601
242602
|
}
|
|
242602
242603
|
else {
|
|
242603
|
-
await fs_extra_1.default.writeFile(gatsbyConfigPathJs,
|
|
242604
|
-
|
|
242605
|
-
})}`);
|
|
242604
|
+
await fs_extra_1.default.writeFile(gatsbyConfigPathJs, `${GENERATED_FILE_COMMENT}
|
|
242605
|
+
module.exports = ${JSON.stringify({ plugins })}`);
|
|
242606
242606
|
}
|
|
242607
242607
|
}
|
|
242608
242608
|
const GENERATED_FILE_COMMENT = `// This file was generated by @vercel/static-build`;
|
|
@@ -242720,7 +242720,8 @@ async function updateGatsbyNode(dir) {
|
|
|
242720
242720
|
await updateGatsbyNodeJs(gatsbyNodePathJs);
|
|
242721
242721
|
}
|
|
242722
242722
|
else {
|
|
242723
|
-
await fs_extra_1.default.writeFile(gatsbyNodePathJs,
|
|
242723
|
+
await fs_extra_1.default.writeFile(gatsbyNodePathJs, `${GENERATED_FILE_COMMENT}
|
|
242724
|
+
module.exports = require('@vercel/gatsby-plugin-vercel-builder/gatsby-node.js');`);
|
|
242724
242725
|
}
|
|
242725
242726
|
}
|
|
242726
242727
|
async function updateGatsbyNodeTs(configPath) {
|
package/dist/utils/gatsby.js
CHANGED
|
@@ -84,9 +84,8 @@ async function updateGatsbyConfig(dir, plugins) {
|
|
|
84
84
|
await updateGatsbyConfigJs(gatsbyConfigPathJs, plugins);
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
await fs_extra_1.default.writeFile(gatsbyConfigPathJs,
|
|
88
|
-
|
|
89
|
-
})}`);
|
|
87
|
+
await fs_extra_1.default.writeFile(gatsbyConfigPathJs, `${GENERATED_FILE_COMMENT}
|
|
88
|
+
module.exports = ${JSON.stringify({ plugins })}`);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
const GENERATED_FILE_COMMENT = `// This file was generated by @vercel/static-build`;
|
|
@@ -204,7 +203,8 @@ async function updateGatsbyNode(dir) {
|
|
|
204
203
|
await updateGatsbyNodeJs(gatsbyNodePathJs);
|
|
205
204
|
}
|
|
206
205
|
else {
|
|
207
|
-
await fs_extra_1.default.writeFile(gatsbyNodePathJs,
|
|
206
|
+
await fs_extra_1.default.writeFile(gatsbyNodePathJs, `${GENERATED_FILE_COMMENT}
|
|
207
|
+
module.exports = require('@vercel/gatsby-plugin-vercel-builder/gatsby-node.js');`);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
async function updateGatsbyNodeTs(configPath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.7",
|
|
33
|
-
"@vercel/gatsby-plugin-vercel-builder": "1.0
|
|
33
|
+
"@vercel/gatsby-plugin-vercel-builder": "1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@types/node-fetch": "2.5.4",
|
|
43
43
|
"@types/promise-timeout": "1.3.0",
|
|
44
44
|
"@types/semver": "7.3.13",
|
|
45
|
-
"@vercel/build-utils": "6.0
|
|
45
|
+
"@vercel/build-utils": "6.1.0",
|
|
46
46
|
"@vercel/frameworks": "1.3.0",
|
|
47
|
-
"@vercel/fs-detectors": "3.7.
|
|
47
|
+
"@vercel/fs-detectors": "3.7.8",
|
|
48
48
|
"@vercel/ncc": "0.24.0",
|
|
49
49
|
"@vercel/routing-utils": "2.1.8",
|
|
50
|
-
"@vercel/static-config": "2.0.
|
|
50
|
+
"@vercel/static-config": "2.0.12",
|
|
51
51
|
"execa": "3.2.0",
|
|
52
52
|
"fs-extra": "10.0.0",
|
|
53
53
|
"get-port": "5.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"ts-morph": "12.0.0",
|
|
61
61
|
"typescript": "4.3.4"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a4d16c681a7e85f64a2d78432d499c599b398bde"
|
|
64
64
|
}
|