|
11 | 11 | "url": "git+https://github.com/react-bootstrap/dom-helpers.git"
|
12 | 12 | },
|
13 | 13 | "license": "MIT",
|
14 |
| - "main": "lib/cjs/index.js", |
15 |
| - "types": "lib/cjs/index.d.ts", |
16 |
| - "module": "lib/esm/index.js", |
| 14 | + "files": [ |
| 15 | + "cjs", |
| 16 | + "esm" |
| 17 | + ], |
| 18 | + "main": "esm/index.js", |
| 19 | + "types": "esm/index.d.ts", |
| 20 | + "module": "esm/index.js", |
| 21 | + "exports": { |
| 22 | + "./package.json": "./package.json", |
| 23 | + ".": { |
| 24 | + "require": { |
| 25 | + "types": "./cjs/index.d.ts", |
| 26 | + "default": "./cjs/index.js" |
| 27 | + }, |
| 28 | + "import": { |
| 29 | + "types": "./esm/index.d.ts", |
| 30 | + "default": "./esm/index.js" |
| 31 | + } |
| 32 | + }, |
| 33 | + "./*": { |
| 34 | + "require": { |
| 35 | + "types": "./cjs/*.d.ts", |
| 36 | + "default": "./cjs/*.js" |
| 37 | + }, |
| 38 | + "import": { |
| 39 | + "types": "./esm/*.d.ts", |
| 40 | + "default": "./esm/*.js" |
| 41 | + } |
| 42 | + } |
| 43 | + }, |
17 | 44 | "keywords": [
|
18 | 45 | "dom-helpers",
|
19 | 46 | "react-component",
|
|
32 | 59 | "scripts": {
|
33 | 60 | "test": "karma start --single-run",
|
34 | 61 | "tdd": "karma start",
|
35 |
| - "check:size": "rollup -c", |
36 |
| - "build:pick": "cherry-pick --name=dom-helpers --cwd=lib --input-dir=../src --cjs-dir=cjs --esm-dir=esm", |
37 |
| - "build": "rimraf lib && node_modules/.bin/build src && yarn build:pick", |
| 62 | + "build": "yarn build:cjs && yarn build:esm", |
| 63 | + "build:cjs": "rimraf cjs && babel src --out-dir cjs --delete-dir-on-start --env-name cjs --extensions .ts && yarn build:cjs:types && echo '{\"type\": \"commonjs\"}' > cjs/package.json", |
| 64 | + "build:esm": "rimraf esm && babel src --out-dir esm --delete-dir-on-start --env-name esm --extensions .ts && yarn build:esm:types && echo '{\"type\": \"module\"}' > esm/package.json", |
| 65 | + "build:cjs:types": "tsc --emitDeclarationOnly --module commonjs --outDir cjs", |
| 66 | + "build:esm:types": "tsc --emitDeclarationOnly --module esnext --outDir esm", |
38 | 67 | "prepublishOnly": "yarn build",
|
39 | 68 | "lint": "tsc -p ./ --noEmit && eslint src test",
|
40 | 69 | "release": "rollout"
|
41 | 70 | },
|
42 |
| - "publishConfig": { |
43 |
| - "directory": "lib" |
44 |
| - }, |
45 | 71 | "release": {
|
46 | 72 | "conventionalCommits": true
|
47 | 73 | },
|
48 | 74 | "dependencies": {
|
49 |
| - "@babel/runtime": "^7.8.7", |
50 |
| - "csstype": "^3.0.2" |
| 75 | + "@babel/runtime": "^7.27.1", |
| 76 | + "csstype": "^3.1.3" |
51 | 77 | },
|
52 | 78 | "devDependencies": {
|
53 |
| - "@4c/build": "^2.3.1", |
54 |
| - "@4c/rollout": "^2.2.1", |
55 |
| - "@4c/tsconfig": "^0.3.1", |
56 |
| - "@babel/cli": "^7.13.16", |
57 |
| - "@babel/core": "^7.14.0", |
58 |
| - "@babel/preset-typescript": "^7.13.0", |
59 |
| - "@react-bootstrap/babel-preset": "^1.2.0", |
| 79 | + "@4c/rollout": "^4.0.2", |
| 80 | + "@4c/tsconfig": "^0.4.1", |
| 81 | + "@babel/cli": "^7.27.2", |
| 82 | + "@babel/core": "^7.27.1", |
| 83 | + "@babel/preset-typescript": "^7.27.1", |
| 84 | + "@react-bootstrap/babel-preset": "^2.3.0", |
60 | 85 | "@react-bootstrap/eslint-config": "^1.3.2",
|
61 | 86 | "@react-bootstrap/eslint-config-typescript": "^2.0.1",
|
62 | 87 | "@typescript-eslint/eslint-plugin": "^4.22.1",
|
63 | 88 | "@typescript-eslint/parser": "^4.22.1",
|
64 | 89 | "babel-eslint": "^10.1.0",
|
65 |
| - "babel-loader": "^8.2.2", |
66 |
| - "cherry-pick": "^0.5.0", |
| 90 | + "babel-loader": "^10.0.0", |
67 | 91 | "eslint": "^7.25.0",
|
68 | 92 | "eslint-plugin-import": "^2.22.1",
|
69 | 93 | "eslint-plugin-jsx-a11y": "^6.4.1",
|
70 | 94 | "eslint-plugin-mocha": "^8.1.0",
|
71 | 95 | "eslint-plugin-react": "^7.23.2",
|
72 | 96 | "expect.js": "^0.3.1",
|
73 |
| - "jquery": "^3.6.0", |
74 |
| - "karma": "^6.3.2", |
75 |
| - "karma-chrome-launcher": "^3.1.0", |
76 |
| - "karma-firefox-launcher": "^2.1.0", |
| 97 | + "jquery": "^3.7.1", |
| 98 | + "karma": "^6.4.4", |
| 99 | + "karma-chrome-launcher": "^3.2.0", |
| 100 | + "karma-firefox-launcher": "^2.1.3", |
77 | 101 | "karma-html2js-preprocessor": "^1.1.0",
|
78 | 102 | "karma-mocha": "~2.0.1",
|
79 | 103 | "karma-mocha-reporter": "^2.2.5",
|
80 | 104 | "karma-sinon": "^1.0.5",
|
81 |
| - "karma-sourcemap-loader": "^0.3.8", |
82 |
| - "karma-webpack": "^4.0.2", |
83 |
| - "mocha": "^8.4.0", |
84 |
| - "rimraf": "^3.0.2", |
85 |
| - "rollup": "^2.47.0", |
86 |
| - "rollup-plugin-size-snapshot": "^0.12.0", |
87 |
| - "rollup-plugin-typescript": "^1.0.1", |
| 105 | + "karma-sourcemap-loader": "^0.4.0", |
| 106 | + "karma-webpack": "^5.0.1", |
| 107 | + "mocha": "^11.5.0", |
| 108 | + "rimraf": "^6.0.1", |
88 | 109 | "simulant": "^0.2.2",
|
89 |
| - "sinon": "^9.2.4", |
90 |
| - "typescript": "^4.2.4", |
91 |
| - "webpack": "^4.46.0" |
| 110 | + "sinon": "^20.0.0", |
| 111 | + "typescript": "^5.8.3", |
| 112 | + "webpack": "^5.99.9" |
92 | 113 | },
|
93 | 114 | "bugs": {
|
94 | 115 | "url": "https://github.com/react-bootstrap/dom-helpers/issues"
|
95 | 116 | },
|
96 | 117 | "readme": "ERROR: No README data found!",
|
97 | 118 | "homepage": "https://github.com/react-bootstrap/dom-helpers#readme",
|
98 |
| - |
| 119 | + |
| 120 | + "packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" |
99 | 121 | }
|
0 commit comments