Skip to content

Commit

Permalink
Merge pull request #141 from inversify/chore/update-esm-build-to-bund…
Browse files Browse the repository at this point in the history
…le-types

Update esm build to bundle types
  • Loading branch information
notaphplover authored Nov 28, 2024
2 parents 35730d4 + 610e371 commit 37b0d96
Show file tree
Hide file tree
Showing 24 changed files with 89 additions and 168 deletions.
8 changes: 8 additions & 0 deletions .changeset/clean-cheetahs-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@inversifyjs/reflect-metadata-utils": patch
"@inversifyjs/strongly-typed": patch
"@inversifyjs/common": patch
"@inversifyjs/core": patch
---

Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@inversifyjs/foundation-scripts": "workspace:*",
"@inversifyjs/foundation-stryker-config": "workspace:*",
"@inversifyjs/foundation-typescript-config": "workspace:*",
"@inversifyjs/foundation-webpack-config": "workspace:*",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"turbo": "2.3.3"
Expand Down
16 changes: 12 additions & 4 deletions packages/container/libraries/common/.npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
/.turbo
/coverage
/reports

**/*.spec.js
**/*.spec.js.map
**/*.ts
!lib/**/*.d.ts
lib/**/*.spec.d.ts
!lib/cjs/**/*.d.ts
lib/esm/**/*.d.ts.map
!lib/esm/index.d.ts
!lib/esm/index.d.ts.map

.lintstagedrc.json
eslint.config.mjs
jest.config.mjs
jest.config.stryker.mjs
jest.js.config.mjs
prettier.config.mjs
rollup.config.mjs
stryker.config.mjs
tsconfig.json
tsconfig.cjs.json
tsconfig.cjs.tsbuildinfo
tsconfig.esm.json
tsconfig.tsbuildinfo
tsconfig.esm.tsbuildinfo
tsconfig.json
8 changes: 4 additions & 4 deletions packages/container/libraries/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"jest": "29.7.0",
"prettier": "3.4.1",
"rimraf": "6.0.1",
"rollup": "4.27.4",
"ts-loader": "9.5.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"webpack": "5.96.1",
"webpack-cli": "5.1.4"
"tslib": "2.8.1",
"typescript": "5.7.2"
},
"devEngines": {
"node": "^20.18.0",
Expand Down Expand Up @@ -59,7 +59,7 @@
"scripts": {
"build": "pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
"build:esm": "webpack && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:clean": "rimraf lib",
"format": "prettier --write ./src/**/*.ts",
"lint": "eslint ./src",
Expand Down
4 changes: 4 additions & 0 deletions packages/container/libraries/common/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config from '@inversifyjs/foundation-rollup-config';

/** @type {!import("rollup").MergedRollupOptions[]} */
export default config;
12 changes: 0 additions & 12 deletions packages/container/libraries/common/webpack.config.mjs

This file was deleted.

16 changes: 12 additions & 4 deletions packages/container/libraries/core/.npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
/.turbo
/coverage
/reports

**/*.spec.js
**/*.spec.js.map
**/*.ts
!lib/**/*.d.ts
lib/**/*.spec.d.ts
!lib/cjs/**/*.d.ts
lib/esm/**/*.d.ts.map
!lib/esm/index.d.ts
!lib/esm/index.d.ts.map

.lintstagedrc.json
eslint.config.mjs
jest.config.mjs
jest.config.stryker.mjs
jest.js.config.mjs
prettier.config.mjs
rollup.config.mjs
stryker.config.mjs
tsconfig.json
tsconfig.cjs.json
tsconfig.cjs.tsbuildinfo
tsconfig.esm.json
tsconfig.tsbuildinfo
tsconfig.esm.tsbuildinfo
tsconfig.json
8 changes: 4 additions & 4 deletions packages/container/libraries/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"prettier": "3.4.1",
"reflect-metadata": "0.2.2",
"rimraf": "6.0.1",
"rollup": "4.27.4",
"ts-loader": "9.5.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"webpack": "5.96.1",
"webpack-cli": "5.1.4"
"tslib": "2.8.1",
"typescript": "5.7.2"
},
"homepage": "https://inversify.io",
"keywords": [
Expand Down Expand Up @@ -64,7 +64,7 @@
"scripts": {
"build": "pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
"build:esm": "webpack && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:clean": "rimraf lib",
"format": "prettier --write ./src/**/*.ts",
"lint": "eslint ./src",
Expand Down
4 changes: 4 additions & 0 deletions packages/container/libraries/core/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config from '@inversifyjs/foundation-rollup-config';

/** @type {!import("rollup").MergedRollupOptions[]} */
export default config;
13 changes: 0 additions & 13 deletions packages/container/libraries/core/webpack.config.mjs

This file was deleted.

16 changes: 12 additions & 4 deletions packages/container/libraries/strongly-typed/.npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
/.turbo
/coverage
/reports

**/*.spec.js
**/*.spec.js.map
**/*.ts
!lib/**/*.d.ts
lib/**/*.spec.d.ts
!lib/cjs/**/*.d.ts
lib/esm/**/*.d.ts.map
!lib/esm/index.d.ts
!lib/esm/index.d.ts.map

.lintstagedrc.json
eslint.config.mjs
jest.config.mjs
jest.config.stryker.mjs
jest.js.config.mjs
prettier.config.mjs
rollup.config.mjs
stryker.config.mjs
tsconfig.json
tsconfig.cjs.json
tsconfig.cjs.tsbuildinfo
tsconfig.esm.json
tsconfig.tsbuildinfo
tsconfig.esm.tsbuildinfo
tsconfig.json
11 changes: 6 additions & 5 deletions packages/container/libraries/strongly-typed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"jest": "29.7.0",
"prettier": "3.4.1",
"rimraf": "6.0.1",
"ts-jest": "29.2.5",
"rollup": "4.27.4",
"ts-loader": "9.5.1",
"typescript": "5.7.2",
"webpack": "5.96.1",
"webpack-cli": "5.1.4"
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"tslib": "2.8.1",
"typescript": "5.7.2"
},
"devEngines": {
"node": "^20.18.0",
Expand Down Expand Up @@ -58,7 +59,7 @@
"scripts": {
"build": "pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
"build:esm": "webpack && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:clean": "rimraf lib",
"format": "prettier --write ./src/**/*.ts",
"lint": "eslint ./src",
Expand Down
4 changes: 4 additions & 0 deletions packages/container/libraries/strongly-typed/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config from '@inversifyjs/foundation-rollup-config';

/** @type {!import("rollup").MergedRollupOptions[]} */
export default config;
13 changes: 0 additions & 13 deletions packages/container/libraries/strongly-typed/webpack.config.mjs

This file was deleted.

15 changes: 11 additions & 4 deletions packages/foundation/libraries/reflect-metadata-utils/.npmignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
/.turbo
/coverage
/reports

**/*.spec.js
**/*.spec.js.map
**/*.ts
!lib/**/*.d.ts
lib/**/*.spec.d.ts
!lib/cjs/**/*.d.ts
lib/esm/**/*.d.ts.map
!lib/esm/index.d.ts
!lib/esm/index.d.ts.map

.lintstagedrc.json
eslint.config.mjs
jest.config.mjs
jest.config.stryker.mjs
jest.js.config.mjs
prettier.config.mjs
rollup.config.mjs
stryker.config.mjs
tsconfig.json
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.cjs.tsbuildinfo
tsconfig.esm.json
tsconfig.esm.tsbuildinfo
tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"jest": "29.7.0",
"prettier": "3.4.1",
"rimraf": "6.0.1",
"rollup": "4.27.4",
"ts-loader": "9.5.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"webpack": "5.96.1",
"webpack-cli": "5.1.4"
"tslib": "2.8.1",
"typescript": "5.7.2"
},
"devEngines": {
"node": "^20.18.0",
Expand All @@ -64,7 +64,7 @@
"scripts": {
"build": "pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
"build:esm": "webpack && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:clean": "rimraf lib",
"format": "prettier --write ./src/**/*.ts",
"lint": "eslint ./src",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config from '@inversifyjs/foundation-rollup-config';

/** @type {!import("rollup").MergedRollupOptions[]} */
export default config;

This file was deleted.

5 changes: 0 additions & 5 deletions packages/foundation/tools/webpack-config/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/foundation/tools/webpack-config/.lintstagedrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/foundation/tools/webpack-config/lib/index.d.ts

This file was deleted.

44 changes: 0 additions & 44 deletions packages/foundation/tools/webpack-config/lib/index.js

This file was deleted.

24 changes: 0 additions & 24 deletions packages/foundation/tools/webpack-config/package.json

This file was deleted.

Loading

0 comments on commit 37b0d96

Please sign in to comment.