mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
chore: ignore .d.ts.map files when publishing packages
This commit is contained in:
parent
62995a5dc1
commit
5344c4a866
@ -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"
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"./dist"
|
||||
"./dist/**/!(*.d.ts.map)"
|
||||
],
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"./dist"
|
||||
"./dist/**/!(*.d.ts.map)"
|
||||
],
|
||||
"directories": {
|
||||
"lib": "./lib"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user