[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:
Steven
2023-08-22 13:04:57 -04:00
committed by GitHub
parent 8f318d44cb
commit 96f99c7147
5 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@vercel/error-utils": patch
---
fix `files` in package.json to use `dist`

View File

@@ -4,6 +4,9 @@
"version": "1.0.4",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json"
},

View File

@@ -5,7 +5,7 @@
"types": "dist/index.d.ts",
"main": "dist/index.js",
"files": [
"dist/*"
"dist"
],
"scripts": {
"build": "tsc",

View File

@@ -4,6 +4,9 @@
"version": "1.0.7",
"types": "index.d.ts",
"main": "index.d.ts",
"files": [
"*.d.ts"
],
"dependencies": {
"@types/node": "14.14.31",
"@vercel-internals/constants": "1.0.4",

View File

@@ -4,6 +4,9 @@
"description": "A collection of error utilities for vercel/vercel",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/vercel/vercel.git",