@vercel/static-build 1.1.0 → 1.1.1
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 +8 -8
- package/dist/utils/gatsby.js +8 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -225298,15 +225298,15 @@ exports.injectVercelAnalyticsPlugin = void 0;
|
|
|
225298
225298
|
const fs_1 = __webpack_require__(5747);
|
|
225299
225299
|
const path = __importStar(__webpack_require__(5622));
|
|
225300
225300
|
const _shared_1 = __webpack_require__(2229);
|
|
225301
|
+
const GATSBY_PLUGIN_PACKAGE_NAME = '@vercel/gatsby-plugin-vercel-analytics';
|
|
225301
225302
|
const DEFAULT_CONFIG = {
|
|
225302
225303
|
plugins: [
|
|
225303
225304
|
{
|
|
225304
|
-
resolve:
|
|
225305
|
+
resolve: GATSBY_PLUGIN_PACKAGE_NAME,
|
|
225305
225306
|
options: {},
|
|
225306
225307
|
},
|
|
225307
225308
|
],
|
|
225308
225309
|
};
|
|
225309
|
-
const GATSBY_PLUGIN_PACKAGE_NAME = 'gatsby-plugin-vercel';
|
|
225310
225310
|
const GATSBY_CONFIG_FILE = 'gatsby-config';
|
|
225311
225311
|
async function injectVercelAnalyticsPlugin(dir) {
|
|
225312
225312
|
// Gatsby requires a special variable name for environment variables to be
|
|
@@ -225366,13 +225366,13 @@ if (!vercelConfig.plugins) {
|
|
|
225366
225366
|
|
|
225367
225367
|
const hasPlugin = vercelConfig.plugins.find(
|
|
225368
225368
|
(p: PluginRef) =>
|
|
225369
|
-
p && (p === "
|
|
225369
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
225370
225370
|
);
|
|
225371
225371
|
|
|
225372
225372
|
if (!hasPlugin) {
|
|
225373
225373
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
225374
225374
|
vercelConfig.plugins.push({
|
|
225375
|
-
resolve: "
|
|
225375
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
225376
225376
|
options: {},
|
|
225377
225377
|
});
|
|
225378
225378
|
}
|
|
@@ -225399,13 +225399,13 @@ if (!vercelConfig.plugins) {
|
|
|
225399
225399
|
|
|
225400
225400
|
const hasPlugin = vercelConfig.plugins.find(
|
|
225401
225401
|
(p) =>
|
|
225402
|
-
p && (p === "
|
|
225402
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
225403
225403
|
);
|
|
225404
225404
|
|
|
225405
225405
|
if (!hasPlugin) {
|
|
225406
225406
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
225407
225407
|
vercelConfig.plugins.push({
|
|
225408
|
-
resolve: "
|
|
225408
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
225409
225409
|
options: {},
|
|
225410
225410
|
});
|
|
225411
225411
|
}
|
|
@@ -225432,12 +225432,12 @@ if (!vercelConfig.plugins) {
|
|
|
225432
225432
|
|
|
225433
225433
|
const hasPlugin = vercelConfig.plugins.find(
|
|
225434
225434
|
(p) =>
|
|
225435
|
-
p && (p === "
|
|
225435
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
225436
225436
|
);
|
|
225437
225437
|
if (!hasPlugin) {
|
|
225438
225438
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
225439
225439
|
vercelConfig.plugins.push({
|
|
225440
|
-
resolve: "
|
|
225440
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
225441
225441
|
options: {},
|
|
225442
225442
|
});
|
|
225443
225443
|
}
|
package/dist/utils/gatsby.js
CHANGED
|
@@ -23,15 +23,15 @@ exports.injectVercelAnalyticsPlugin = void 0;
|
|
|
23
23
|
const fs_1 = require("fs");
|
|
24
24
|
const path = __importStar(require("path"));
|
|
25
25
|
const _shared_1 = require("./_shared");
|
|
26
|
+
const GATSBY_PLUGIN_PACKAGE_NAME = '@vercel/gatsby-plugin-vercel-analytics';
|
|
26
27
|
const DEFAULT_CONFIG = {
|
|
27
28
|
plugins: [
|
|
28
29
|
{
|
|
29
|
-
resolve:
|
|
30
|
+
resolve: GATSBY_PLUGIN_PACKAGE_NAME,
|
|
30
31
|
options: {},
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
34
|
};
|
|
34
|
-
const GATSBY_PLUGIN_PACKAGE_NAME = 'gatsby-plugin-vercel';
|
|
35
35
|
const GATSBY_CONFIG_FILE = 'gatsby-config';
|
|
36
36
|
async function injectVercelAnalyticsPlugin(dir) {
|
|
37
37
|
// Gatsby requires a special variable name for environment variables to be
|
|
@@ -91,13 +91,13 @@ if (!vercelConfig.plugins) {
|
|
|
91
91
|
|
|
92
92
|
const hasPlugin = vercelConfig.plugins.find(
|
|
93
93
|
(p: PluginRef) =>
|
|
94
|
-
p && (p === "
|
|
94
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
95
95
|
);
|
|
96
96
|
|
|
97
97
|
if (!hasPlugin) {
|
|
98
98
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
99
99
|
vercelConfig.plugins.push({
|
|
100
|
-
resolve: "
|
|
100
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
101
101
|
options: {},
|
|
102
102
|
});
|
|
103
103
|
}
|
|
@@ -124,13 +124,13 @@ if (!vercelConfig.plugins) {
|
|
|
124
124
|
|
|
125
125
|
const hasPlugin = vercelConfig.plugins.find(
|
|
126
126
|
(p) =>
|
|
127
|
-
p && (p === "
|
|
127
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
128
128
|
);
|
|
129
129
|
|
|
130
130
|
if (!hasPlugin) {
|
|
131
131
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
132
132
|
vercelConfig.plugins.push({
|
|
133
|
-
resolve: "
|
|
133
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
134
134
|
options: {},
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -157,12 +157,12 @@ if (!vercelConfig.plugins) {
|
|
|
157
157
|
|
|
158
158
|
const hasPlugin = vercelConfig.plugins.find(
|
|
159
159
|
(p) =>
|
|
160
|
-
p && (p === "
|
|
160
|
+
p && (p === "${GATSBY_PLUGIN_PACKAGE_NAME}" || p.resolve === "${GATSBY_PLUGIN_PACKAGE_NAME}")
|
|
161
161
|
);
|
|
162
162
|
if (!hasPlugin) {
|
|
163
163
|
vercelConfig.plugins = vercelConfig.plugins.slice();
|
|
164
164
|
vercelConfig.plugins.push({
|
|
165
|
-
resolve: "
|
|
165
|
+
resolve: "${GATSBY_PLUGIN_PACKAGE_NAME}",
|
|
166
166
|
options: {},
|
|
167
167
|
});
|
|
168
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/ms": "0.7.31",
|
|
37
37
|
"@types/node-fetch": "2.5.4",
|
|
38
38
|
"@types/promise-timeout": "1.3.0",
|
|
39
|
-
"@vercel/build-utils": "5.7.
|
|
39
|
+
"@vercel/build-utils": "5.7.5",
|
|
40
40
|
"@vercel/frameworks": "1.1.18",
|
|
41
41
|
"@vercel/ncc": "0.24.0",
|
|
42
42
|
"@vercel/routing-utils": "2.1.3",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"tree-kill": "1.2.2",
|
|
51
51
|
"typescript": "4.3.4"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "4c3bc0532216f21f354623ada76b2315ef8ba519"
|
|
54
54
|
}
|