|
8 | 8 | "generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog",
|
9 | 9 | "clean": "rimraf dist",
|
10 | 10 | "lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
|
11 |
| - "prettier": "prettier --write '{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}'", |
| 11 | + "prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"", |
12 | 12 | "test": "ava",
|
13 | 13 | "prebuild": "pnpm run clean",
|
14 | 14 | "build": "pnpm run prebuild && pnpm run rollup",
|
15 | 15 | "build:built_in_module_map": "ts-node script/generate-built-in-module-map.ts",
|
16 | 16 | "prewatch": "pnpm run clean",
|
17 |
| - "watch": "pnpm run prewatch && pnpm run rollup -- --watch", |
| 17 | + "watch": "pnpm run prewatch && pnpm run rollup:watch", |
18 | 18 | "rollup": "rollup -c rollup.config.js",
|
19 |
| - "preversion": "pnpm run lint && pnpm run build:built_in_module_map && pnpm run build", |
| 19 | + "rollup:watch": "rollup -c rollup.config.js --watch", |
| 20 | + "preversion": "pnpm run lint && pnpm run build:built_in_module_map && pnpm run build && dotcjs dist/cjs", |
20 | 21 | "version": "pnpm run preversion && pnpm run generate:all && git add .",
|
21 | 22 | "release": "np --no-cleanup --no-yarn",
|
22 |
| - "update:check": "pnpx npm-check-updates -x typescript-*,chalk,ava,@types/resolve --dep dev,prod", |
23 |
| - "update:commit": "pnpx npm-check-updates -u -x typescript-*,chalk,ava,@types/resolve --dep dev,prod && pnpm update && pnpm install" |
| 23 | + "update:check": "pnpx npm-check-updates -x typescript-*,ava,@types/resolve --dep dev,prod", |
| 24 | + "update:commit": "pnpx npm-check-updates -u -x typescript-*,ava,@types/resolve --dep dev,prod && pnpm update && pnpm install" |
24 | 25 | },
|
25 | 26 | "keywords": [
|
26 | 27 | "typescript",
|
|
54 | 55 | "license": "MIT",
|
55 | 56 | "devDependencies": {
|
56 | 57 | "@rollup/plugin-node-resolve": "^13.3.0",
|
57 |
| - "@types/node": "^17.0.35", |
58 |
| - "@types/prettier": "^2.6.1", |
| 58 | + "@types/node": "^17.0.36", |
| 59 | + "@types/prettier": "^2.6.3", |
59 | 60 | "@types/reserved-words": "^0.1.0",
|
60 | 61 | "@types/resolve": "1.20.0",
|
61 | 62 | "@types/semver": "^7.3.9",
|
62 | 63 | "@typescript-eslint/eslint-plugin": "^5.26.0",
|
63 | 64 | "@typescript-eslint/parser": "^5.26.0",
|
64 | 65 | "@wessberg/ts-config": "2.0.2",
|
| 66 | + "@wessberg/prettier-config": "1.0.0", |
| 67 | + "dotcjs": "1.0.0", |
65 | 68 | "rollup-plugin-ts": "2.0.7",
|
66 | 69 | "ava": "3.15.0",
|
67 | 70 | "eslint": "^8.16.0",
|
68 | 71 | "eslint-config-prettier": "^8.5.0",
|
69 | 72 | "eslint-plugin-import": "^2.26.0",
|
70 |
| - "eslint-plugin-jsdoc": "^39.3.1", |
| 73 | + "eslint-plugin-jsdoc": "^39.3.2", |
71 | 74 | "husky": "^8.0.1",
|
72 |
| - "memfs": "^3.4.3", |
| 75 | + "memfs": "^3.4.4", |
73 | 76 | "np": "7.6.1",
|
74 | 77 | "npm-check-updates": "^13.0.3",
|
75 |
| - "pnpm": "^7.1.5", |
| 78 | + "pnpm": "^7.1.7", |
76 | 79 | "prettier": "^2.6.2",
|
77 | 80 | "pretty-quick": "^3.1.3",
|
78 | 81 | "rimraf": "^3.0.2",
|
79 |
| - "rollup": "^2.74.1", |
80 |
| - "sandhog": "^1.0.43", |
| 82 | + "rollup": "^2.75.1", |
| 83 | + "sandhog": "^2.0.1", |
81 | 84 | "semver": "7.3.7",
|
82 | 85 | "standard-changelog": "^2.0.27",
|
83 | 86 | "ts-node": "^10.8.0",
|
84 | 87 | "tslib": "^2.4.0",
|
85 |
| - "typescript": "4.6.4", |
| 88 | + "typescript": "4.7.2", |
86 | 89 | "typescript-3-2-1": "npm:[email protected]",
|
87 | 90 | "typescript-3-3-1": "npm:[email protected]",
|
88 | 91 | "typescript-3-4-1": "npm:[email protected]",
|
|
101 | 104 | },
|
102 | 105 | "dependencies": {
|
103 | 106 | "@wessberg/stringutil": "^1.0.19",
|
104 |
| - "chalk": "^4.1.2", |
105 |
| - "commander": "^9.2.0", |
| 107 | + "chalk": "^5.0.1", |
| 108 | + "commander": "^9.3.0", |
106 | 109 | "compatfactory": "^0.0.13",
|
107 | 110 | "crosspath": "^1.0.0",
|
108 | 111 | "fast-glob": "^3.2.11",
|
|
113 | 116 | "peerDependencies": {
|
114 | 117 | "typescript": ">=3.2.x || >= 4.x"
|
115 | 118 | },
|
116 |
| - "main": "./dist/lib/cjs/index.js", |
117 |
| - "module": "./dist/lib/esm/index.js", |
118 |
| - "browser": "./dist/lib/esm/index.js", |
119 |
| - "types": "./dist/lib/esm/index.d.ts", |
120 |
| - "typings": "./dist/lib/esm/index.d.ts", |
121 |
| - "es2015": "./dist/lib/esm/index.js", |
| 119 | + "exports": { |
| 120 | + "import": "./dist/esm/index.js", |
| 121 | + "require": "./dist/cjs/index.cjs" |
| 122 | + }, |
| 123 | + "type": "module", |
| 124 | + "types": "./dist/esm/index.d.ts", |
| 125 | + "main": "./dist/cjs/index.cjs", |
| 126 | + "module": "./dist/esm/index.js", |
122 | 127 | "repository": {
|
123 | 128 | "type": "git",
|
124 | 129 | "url": "https://github.com/wessberg/cjstoesm.git"
|
|
127 | 132 | "url": "https://github.com/wessberg/cjstoesm/issues"
|
128 | 133 | },
|
129 | 134 | "engines": {
|
130 |
| - "node": ">=10.0.0" |
| 135 | + "node": ">=14.9.0" |
131 | 136 | },
|
| 137 | + "prettier": "@wessberg/prettier-config", |
132 | 138 | "ava": {
|
133 | 139 | "files": [
|
134 | 140 | "test/**.test.ts"
|
135 | 141 | ],
|
136 | 142 | "verbose": true,
|
137 |
| - "timeout": "400s", |
138 |
| - "extensions": [ |
139 |
| - "ts" |
| 143 | + "nonSemVerExperiments": { |
| 144 | + "configurableModuleFormat": true |
| 145 | + }, |
| 146 | + "extensions": { |
| 147 | + "ts": "module" |
| 148 | + }, |
| 149 | + "nodeArguments": [ |
| 150 | + "--loader=ts-node/esm" |
140 | 151 | ],
|
141 | 152 | "environmentVariables": {
|
142 |
| - "NODE_OPTIONS": "--max_old_space_size=4096", |
143 | 153 | "FORCE_COLOR": "3"
|
144 |
| - }, |
145 |
| - "require": [ |
146 |
| - "ts-node/register/transpile-only" |
147 |
| - ] |
| 154 | + } |
148 | 155 | }
|
149 | 156 | }
|
0 commit comments