@vercel/static-build 1.3.0 → 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 +12 -7
- package/dist/utils/gatsby.js +4 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -240729,8 +240729,10 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
|
240729
240729
|
return {
|
|
240730
240730
|
monorepoManager: 'turbo',
|
|
240731
240731
|
buildCommand: `cd ${relativeToRoot} && npx turbo run build --filter={${projectPath}}...`,
|
|
240732
|
-
installCommand:
|
|
240733
|
-
|
|
240732
|
+
installCommand: packageManager === 'npm'
|
|
240733
|
+
? `${packageManager} install --prefix=${relativeToRoot}`
|
|
240734
|
+
: `${packageManager} install`,
|
|
240735
|
+
commandForIgnoringBuildStep: `npx turbo-ignore`,
|
|
240734
240736
|
};
|
|
240735
240737
|
}
|
|
240736
240738
|
else if (monorepoManager === 'nx') {
|
|
@@ -240768,7 +240770,9 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
|
240768
240770
|
return {
|
|
240769
240771
|
monorepoManager: 'nx',
|
|
240770
240772
|
buildCommand: `cd ${relativeToRoot} && npx nx build ${projectName}`,
|
|
240771
|
-
installCommand:
|
|
240773
|
+
installCommand: packageManager === 'npm'
|
|
240774
|
+
? `${packageManager} install --prefix=${relativeToRoot}`
|
|
240775
|
+
: `${packageManager} install`,
|
|
240772
240776
|
};
|
|
240773
240777
|
}
|
|
240774
240778
|
// TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
|
|
@@ -241304,6 +241308,7 @@ exports.BaseFunctionConfigSchema = {
|
|
|
241304
241308
|
type: 'object',
|
|
241305
241309
|
properties: {
|
|
241306
241310
|
runtime: { type: 'string' },
|
|
241311
|
+
cron: { type: 'string' },
|
|
241307
241312
|
memory: { type: 'number' },
|
|
241308
241313
|
maxDuration: { type: 'number' },
|
|
241309
241314
|
regions: {
|
|
@@ -242596,9 +242601,8 @@ async function updateGatsbyConfig(dir, plugins) {
|
|
|
242596
242601
|
await updateGatsbyConfigJs(gatsbyConfigPathJs, plugins);
|
|
242597
242602
|
}
|
|
242598
242603
|
else {
|
|
242599
|
-
await fs_extra_1.default.writeFile(gatsbyConfigPathJs,
|
|
242600
|
-
|
|
242601
|
-
})}`);
|
|
242604
|
+
await fs_extra_1.default.writeFile(gatsbyConfigPathJs, `${GENERATED_FILE_COMMENT}
|
|
242605
|
+
module.exports = ${JSON.stringify({ plugins })}`);
|
|
242602
242606
|
}
|
|
242603
242607
|
}
|
|
242604
242608
|
const GENERATED_FILE_COMMENT = `// This file was generated by @vercel/static-build`;
|
|
@@ -242716,7 +242720,8 @@ async function updateGatsbyNode(dir) {
|
|
|
242716
242720
|
await updateGatsbyNodeJs(gatsbyNodePathJs);
|
|
242717
242721
|
}
|
|
242718
242722
|
else {
|
|
242719
|
-
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');`);
|
|
242720
242725
|
}
|
|
242721
242726
|
}
|
|
242722
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.
|
|
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
|
}
|