Skip to content

Commit

Permalink
fix(config): fixes problem in esm, webpack bundling
Browse files Browse the repository at this point in the history
- fix typo in module field in package.json file
- improve package.json file exports field: fix frontend, EMS project build error
- change export type to named export for better use in esm
- upgrade project dependencies
  • Loading branch information
imjuni committed Jun 1, 2024
1 parent ddf6385 commit 7575f0f
Show file tree
Hide file tree
Showing 5 changed files with 592 additions and 341 deletions.
22 changes: 0 additions & 22 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,6 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Jest",
"request": "launch",
"runtimeArgs": ["run-script", "test:debug", "${input:testPath}"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"stopOnEntry": true,
"type": "node"
},
{
"type": "node",
"request": "launch",
"name": "Launch Test",
"args": ["--runInBand", "--no-cache", "${input:testPath}"],
"runtimeArgs": ["-r", "ts-node/register", "--inspect"],
"stopOnEntry": false,
"sourceMaps": true,
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"env": {
"TS_NODE_PROJECT": "tsconfig.json"
}
},
{
"type": "node",
"request": "attach",
Expand Down
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@
"author": "ByungJoon Lee",
"license": "MIT",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.,js",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"require": {
"default": "./dist/cjs/index.cjs",
"types": "./dist/types/index.d.ts"
},
"import": {
"import": "./dist/esm/index.mjs",
"default": "./dist/esm/index.mjs",
"types": "./dist/types/index.d.ts"
},
"require": {
"require": "./dist/cjs/index.cjs",
"default": "./dist/cjs/index.cjs",
"types": "./dist/types/index.d.ts"
}
}
},
Expand All @@ -80,38 +82,38 @@
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^20.4.2",
"@types/node": "^20.13.0",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-v8": "^1.5.2",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vitest/coverage-v8": "^1.6.0",
"cross-env": "^7.0.3",
"deps-diff": "^1.0.2",
"esbuild": "^0.20.2",
"eslint": "^8.56.0",
"esbuild": "^0.21.4",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-jsdoc": "^48.2.7",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"lint-staged": "^15.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"prettier-eslint": "^16.3.0",
"prettier-plugin-organize-imports": "^3.2.3",
"read-pkg": "^5.2.0",
"rimraf": "^5.0.1",
"rollup": "^4.17.0",
"rollup-plugin-dts": "^6.1.0",
"tsc-alias": "^1.8.8",
"rimraf": "^5.0.7",
"rollup": "^4.18.0",
"rollup-plugin-dts": "^6.1.1",
"tsc-alias": "^1.8.10",
"tsconfig-paths": "^4.2.0",
"tslib": "^2.6.2",
"typescript": "^5.4.5",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.5.2"
"vitest": "^1.6.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand Down
Loading

0 comments on commit 7575f0f

Please sign in to comment.