chore: ignore .d.ts.map files when publishing packages

This commit is contained in:
Marc-Roig 2023-10-05 15:22:31 +02:00
parent 62995a5dc1
commit 5344c4a866
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249
5 changed files with 20 additions and 20 deletions

View File

@ -26,19 +26,19 @@
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"./dist/**/!(*.d.ts.map)"
],
"scripts": {
"build": "run -T tsc -p tsconfig.build.json",
"build:ts": "run build",
"clean": "rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"lint": "run -T eslint ."
"watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput"
},
"files": [
"./dist"
],
"dependencies": {
"@strapi/logger": "4.14.3",
"@strapi/strapi": "4.14.3",
@ -59,9 +59,6 @@
"tar-stream": "2.2.0",
"ws": "8.13.0"
},
"peerDependencies": {
"@strapi/strapi": "^4.13.7"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/jest": "29.5.2",
@ -79,6 +76,9 @@
"rimraf": "3.0.2",
"typescript": "5.2.2"
},
"peerDependencies": {
"@strapi/strapi": "^4.13.7"
},
"engines": {
"node": ">=16.0.0 <=20.x.x",
"npm": ">=6.0.0"

View File

@ -20,7 +20,7 @@
}
],
"files": [
"./dist"
"./dist/**/!(*.d.ts.map)"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",

View File

@ -68,7 +68,7 @@
"types": "./dist/index.d.ts",
"bin": "./bin/strapi.js",
"files": [
"./dist",
"./dist/**/!(*.d.ts.map)",
"./bin",
"./scripts",
"./resources",
@ -77,14 +77,14 @@
"scripts": {
"build": "run -T tsc -p tsconfig.build.json && run copy-files",
"build:ts": "run build",
"watch": "run -T tsc -p tsconfig.build.json -w --preserveWatchOutput",
"clean": "run -T rimraf ./dist",
"prepublishOnly": "yarn clean && yarn build",
"postinstall": "node ./scripts/postinstall.js",
"test:unit": "run -T jest",
"copy-files": "copyfiles -u 1 -a 'src/**/*.html' 'src/**/*.png' dist",
"postinstall": "node ./scripts/postinstall.js",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"lint": "run -T eslint ."
"watch": "run -T tsc -p tsconfig.build.json -w --preserveWatchOutput"
},
"dependencies": {
"@koa/cors": "3.4.3",

View File

@ -29,18 +29,18 @@
"main": "index.js",
"types": "./dist/index.d.ts",
"files": [
"./dist",
"./dist/**/!(*.d.ts.map)",
"index.js"
],
"scripts": {
"build": "run -T tsc -p tsconfig.build.json",
"build:ts": "run build",
"watch": "run -T tsc -p tsconfig.build.json -w --preserveWatchOutput",
"clean": "run -T rimraf ./dist",
"prepublishOnly": "yarn clean && yarn build",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch"
"test:unit:watch": "run -T jest --watch",
"watch": "run -T tsc -p tsconfig.build.json -w --preserveWatchOutput"
},
"dependencies": {
"@koa/cors": "3.4.3",

View File

@ -30,7 +30,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"./dist"
"./dist/**/!(*.d.ts.map)"
],
"directories": {
"lib": "./lib"