vercel 30.1.0 → 30.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 +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -225821,6 +225821,13 @@ async function main(client) {
|
|
225821
225821
|
// Build `target` influences which environment variables will be used
|
225822
225822
|
const target = argv['--prod'] ? 'production' : 'preview';
|
225823
225823
|
const yes = Boolean(argv['--yes']);
|
225824
|
+
try {
|
225825
|
+
await (0, build_utils_1.validateNpmrc)(cwd);
|
225826
|
+
}
|
225827
|
+
catch (err) {
|
225828
|
+
output.prettyError(err);
|
225829
|
+
return 1;
|
225830
|
+
}
|
225824
225831
|
// TODO: read project settings from the API, fall back to local `project.json` if that fails
|
225825
225832
|
// Read project settings, and pull them from Vercel if necessary
|
225826
225833
|
let project = await (0, project_settings_1.readProjectSettings)((0, path_1.join)(cwd, link_1.VERCEL_DIR));
|
@@ -235148,7 +235155,10 @@ const build = async ({ entrypoint, files, config }) => {
|
|
235148
235155
|
for (let [filename, fileFsRef] of Object.entries(files)) {
|
235149
235156
|
if (filename.startsWith('.git/') ||
|
235150
235157
|
filename === 'vercel.json' ||
|
235151
|
-
filename === '
|
235158
|
+
filename === '.vercelignore' ||
|
235159
|
+
filename === 'now.json' ||
|
235160
|
+
filename === '.nowignore' ||
|
235161
|
+
filename.startsWith('.env')) {
|
235152
235162
|
continue;
|
235153
235163
|
}
|
235154
235164
|
if (entrypoint &&
|