chore: use npmignore to remove declaration maps from packaging

This commit is contained in:
Alexandre Bodin 2023-10-12 18:25:01 +02:00
parent 1fd26871a3
commit ec3447cb26
10 changed files with 10 additions and 5 deletions

View File

@ -131,3 +131,4 @@ schema.graphql
front-workspace.code-workspace front-workspace.code-workspace
.yarn .yarn
.yarnrc .yarnrc
dist/**/*.d.ts.map

View File

@ -27,7 +27,7 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"files": [ "files": [
"./dist/**/!(*.d.ts.map)" "./dist"
], ],
"scripts": { "scripts": {
"build": "run -T tsc -p tsconfig.build.json", "build": "run -T tsc -p tsconfig.build.json",

View File

@ -97,3 +97,4 @@ tests
__tests__ __tests__
jest.config.js jest.config.js
coverage coverage
dist/**/*.d.ts.map

View File

@ -24,7 +24,7 @@
"source": "./src/index.ts", "source": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"files": [ "files": [
"./dist/**/!(*.d.ts.map)" "./dist"
], ],
"scripts": { "scripts": {
"build": "pack-up build", "build": "pack-up build",

View File

@ -97,3 +97,4 @@ tests
__tests__ __tests__
jest.config.js jest.config.js
coverage coverage
dist/**/*.d.ts.map

View File

@ -68,7 +68,7 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"bin": "./bin/strapi.js", "bin": "./bin/strapi.js",
"files": [ "files": [
"./dist/**/!(*.d.ts.map)", "./dist",
"./bin", "./bin",
"./scripts", "./scripts",
"./resources", "./resources",

View File

@ -97,3 +97,4 @@ tests
__tests__ __tests__
jest.config.js jest.config.js
coverage coverage
dist/**/*.d.ts.map

View File

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

View File

@ -96,3 +96,4 @@ test
tests tests
__tests__ __tests__
jest.config.js jest.config.js
dist/**/*.d.ts.map

View File

@ -32,7 +32,7 @@
"source": "./src/index.ts", "source": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"files": [ "files": [
"./dist/**/!(*.d.ts.map)" "./dist"
], ],
"scripts": { "scripts": {
"build": "pack-up build", "build": "pack-up build",