|
2 | 2 | "name": "scriptloader-component", |
3 | 3 | "version": "1.5.4", |
4 | 4 | "description": "A React Component for reacting to scripts loading.", |
5 | | - "main": "dist/index.js", |
6 | | - "module": "dist/index.js", |
| 5 | + "main": "module/index.js", |
| 6 | + "exports": { |
| 7 | + ".": { |
| 8 | + "require": "dist/index.js", |
| 9 | + "default": "module/index.js" |
| 10 | + }, |
| 11 | + "./*": { |
| 12 | + "require": "dist/*.js", |
| 13 | + "default": "module/*.js" |
| 14 | + } |
| 15 | + }, |
7 | 16 | "files": [ |
8 | 17 | "dist", |
| 18 | + "module", |
9 | 19 | "src", |
10 | 20 | "scriptloader-support", |
11 | 21 | "useScriptLoader" |
12 | 22 | ], |
13 | 23 | "scripts": { |
14 | 24 | "test": "eslint --quiet . && tsc --noEmit --project ./tsconfig.json && jest", |
15 | | - "build": "npm run build:base && npm run build:useScriptLoader && npm run build:scriptloader-support", |
16 | | - "build:base": "tsc --project ./tsconfig.json", |
17 | | - "build:useScriptLoader": "tsc --project ./useScriptLoader/tsconfig.json", |
18 | | - "build:scriptloader-support": "tsc --project ./scriptloader-support/tsconfig.json", |
| 25 | + "build": "npm run build:dist && npm run build:module", |
| 26 | + "build:dist": "tsc --project ./tsconfig.json", |
| 27 | + "build:module": "tsc --project ./module-tsconfig.json", |
19 | 28 | "prepack": "npm run build" |
20 | 29 | }, |
21 | 30 | "repository": { |
|
53 | 62 | "react": ">=16" |
54 | 63 | }, |
55 | 64 | "devDependencies": { |
56 | | - "@babel/core": "^7.12.9", |
57 | | - "@babel/preset-env": "^7.12.7", |
58 | | - "@babel/preset-react": "^7.12.7", |
59 | | - "@babel/preset-typescript": "^7.12.7", |
| 65 | + "@babel/core": "^7.20.5", |
| 66 | + "@babel/preset-env": "^7.20.2", |
| 67 | + "@babel/preset-react": "^7.18.6", |
| 68 | + "@babel/preset-typescript": "^7.18.6", |
60 | 69 | "@commitlint/cli": "^11.0.0", |
61 | 70 | "@commitlint/config-conventional": "^11.0.0", |
62 | | - "@semantic-release/changelog": "^5.0.1", |
63 | | - "@semantic-release/commit-analyzer": "^8.0.1", |
64 | | - "@semantic-release/git": "^9.0.0", |
65 | | - "@semantic-release/github": "^7.2.0", |
66 | | - "@semantic-release/npm": "^7.0.8", |
67 | | - "@semantic-release/release-notes-generator": "^9.0.1", |
68 | | - "@testing-library/jest-dom": "^5.11.6", |
| 71 | + "@semantic-release/changelog": "^6.0.2", |
| 72 | + "@semantic-release/commit-analyzer": "^9.0.2", |
| 73 | + "@semantic-release/git": "^10.0.1", |
| 74 | + "@semantic-release/github": "^8.0.7", |
| 75 | + "@semantic-release/npm": "^9.0.1", |
| 76 | + "@semantic-release/release-notes-generator": "^10.0.3", |
| 77 | + "@testing-library/jest-dom": "^5.16.5", |
69 | 78 | "@testing-library/react": "^13.4.0", |
70 | 79 | "@types/node": "^14.14.9", |
71 | 80 | "@types/react": "^18.0.18", |
72 | | - "@typescript-eslint/eslint-plugin": "^4.8.2", |
73 | | - "@typescript-eslint/parser": "^4.8.2", |
74 | | - "babel-jest": "^26.6.3", |
| 81 | + "@typescript-eslint/eslint-plugin": "^5.45.0", |
| 82 | + "@typescript-eslint/parser": "^5.45.0", |
| 83 | + "babel-jest": "^29.3.1", |
75 | 84 | "commitlint-config-eslint": "^1.0.0", |
76 | 85 | "conventional-changelog-eslint": "^3.0.9", |
77 | 86 | "debug": "^4.3.1", |
|
83 | 92 | "fs-extra": "^9.0.1", |
84 | 93 | "husky": "^4.3.0", |
85 | 94 | "issue-parser": "^6.0.0", |
86 | | - "jest": "^26.6.3", |
87 | | - "jest-environment-jsdom": "^26.6.2", |
| 95 | + "jest": "^29.3.1", |
| 96 | + "jest-environment-jsdom": "^29.3.1", |
88 | 97 | "lint-staged": "^10.5.2", |
89 | 98 | "lodash": "^4.17.20", |
90 | | - "msw": "^0.22.3", |
| 99 | + "msw": "^0.49.1", |
91 | 100 | "octokit": "^1.0.0-hello-world", |
92 | 101 | "p-filter": "^2.1.0", |
93 | 102 | "prettier": "^2.2.0", |
94 | 103 | "react": "^18.2.0", |
95 | 104 | "react-dom": "^18.2.0", |
96 | | - "semantic-release": "^17.3.0", |
97 | | - "ts-node": "^9.0.0", |
| 105 | + "semantic-release": "^19.0.5", |
| 106 | + "ts-node": "^10.9.1", |
98 | 107 | "typescript": "^4.1.3" |
99 | 108 | } |
100 | 109 | } |
0 commit comments