Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): move TypeScript types into a single dist/types folder #905

Merged
merged 5 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions packages/binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/binding/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
15 changes: 8 additions & 7 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "MIT",
"author": "Ghislain B.",
"homepage": "https://github.com/ghiscoding/slickgrid-universal",
Expand All @@ -39,16 +39,17 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build": "pnpm run bundle:esm && tsc --declaration",
"postbuild": "run-s sass:build sass:copy",
"build:incremental": "tsc --incremental",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "node build-watch.mjs",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"postbundle": "run-s sass:build sass:copy",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types",
"sass-build-task:scss-compile:bootstrap": "sass src/styles/slickgrid-theme-bootstrap.scss dist/styles/css/slickgrid-theme-bootstrap.css --style=compressed --quiet-deps --no-source-map",
"sass-build-task:scss-compile:material": "sass src/styles/slickgrid-theme-material.scss dist/styles/css/slickgrid-theme-material.css --style=compressed --quiet-deps --no-source-map",
"sass-build-task:scss-compile:material-bare": "sass src/styles/slickgrid-theme-material.bare.scss dist/styles/css/slickgrid-theme-material.bare.css --style=compressed --quiet-deps --no-source-map",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
19 changes: 10 additions & 9 deletions packages/composite-editor-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/composite-editor-component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
19 changes: 10 additions & 9 deletions packages/custom-footer-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-footer-component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
19 changes: 10 additions & 9 deletions packages/custom-tooltip-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-tooltip-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
19 changes: 10 additions & 9 deletions packages/empty-warning-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/empty-warning-component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
19 changes: 10 additions & 9 deletions packages/event-pub-sub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"module": "dist/esm/index.js",
"exports": {
".": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/commonjs/index.js"
"require": "./dist/commonjs/index.js",
"default": "./dist/esm/index.js"
},
"./*": "./*"
},
"typesVersions": {
"*": {
"*": [
"./dist/esm/index.d.ts"
"./dist/types/index.d.ts"
]
}
},
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -28,14 +28,15 @@
],
"scripts": {
"prebuild": "pnpm run clean",
"build": "pnpm run bundle:esm",
"build:incremental": "tsc --incremental",
"build": "pnpm run bundle:esm && tsc --declaration",
"build:incremental": "tsc --incremental --declaration",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"dev": "tsc --incremental",
"dev": "pnpm build:incremental",
"prebundle": "pnpm run clean",
"bundle": "run-p bundle:commonjs bundle:esm",
"bundle": "run-p bundle:commonjs bundle:esm bundle:types",
"bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018"
"bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
"bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types"
},
"license": "MIT",
"author": "Ghislain B.",
Expand Down
2 changes: 1 addition & 1 deletion packages/event-pub-sub/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": "src",
"declarationDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"typeRoots": [
"typings"
Expand Down
Loading