mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[error-utils] fix files in package.json to use dist (#10378)
These packages were publishing unnecessary files to npm so we can reduce to only the `dist` directory. - Example: https://unpkg.com/browse/@vercel/error-utils@2.0.0/ - Docs: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#files
This commit is contained in:
5
.changeset/fuzzy-yaks-judge.md
Normal file
5
.changeset/fuzzy-yaks-judge.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vercel/error-utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix `files` in package.json to use `dist`
|
||||||
@@ -4,6 +4,9 @@
|
|||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json"
|
"build": "tsc -p tsconfig.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/*"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"main": "index.d.ts",
|
"main": "index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"*.d.ts"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "14.14.31",
|
"@types/node": "14.14.31",
|
||||||
"@vercel-internals/constants": "1.0.4",
|
"@vercel-internals/constants": "1.0.4",
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
"description": "A collection of error utilities for vercel/vercel",
|
"description": "A collection of error utilities for vercel/vercel",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/vercel/vercel.git",
|
"url": "https://github.com/vercel/vercel.git",
|
||||||
|
|||||||
Reference in New Issue
Block a user