Skip to content

Commit

Permalink
fix(repo): provide typings for both cjs and es builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Oct 3, 2024
1 parent 4a2358a commit 38a2b3b
Show file tree
Hide file tree
Showing 31 changed files with 358 additions and 134 deletions.
14 changes: 10 additions & 4 deletions packages/alias/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -65,7 +71,7 @@
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"files": [
"!**/fixtures/**",
Expand Down
14 changes: 10 additions & 4 deletions packages/auto-install/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -68,7 +74,7 @@
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -82,7 +88,7 @@
"rollup": "^4.0.0-24",
"source-map": "^0.7.4"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"files": [
"!**/fixtures/**",
Expand Down
14 changes: 10 additions & 4 deletions packages/buble/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -72,7 +78,7 @@
"source-map": "^0.7.4",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/commonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=16.0.0 || 14 >= 14.17"
Expand Down Expand Up @@ -80,7 +86,7 @@
"source-map-support": "^0.5.21",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/data-uri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -69,7 +75,7 @@
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/dsv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"scripts": {
"build": "rollup -c",
Expand Down Expand Up @@ -59,7 +65,7 @@
"del-cli": "^5.0.0",
"rollup": "^4.0.0-24"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/dynamic-import-vars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -74,7 +80,7 @@
"prettier": "^2.7.1",
"rollup": "^4.0.0-24"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -72,7 +78,7 @@
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"files": [
"!**/fixtures/**",
Expand Down
18 changes: 12 additions & 6 deletions packages/esm-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@
"author": "Peter Placzek <[email protected]>",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/esm-shim#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -66,5 +72,5 @@
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts"
"types": "./dist/cjs/index.d.ts"
}
14 changes: 10 additions & 4 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -71,7 +77,7 @@
"graphql": "^16.6.0",
"rollup": "^4.0.0-24"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -65,7 +71,7 @@
"rollup-plugin-postcss": "^4.0.2",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
14 changes: 10 additions & 4 deletions packages/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"type": "commonjs",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
}
},
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -65,7 +71,7 @@
"@rollup/plugin-buble": "^1.0.0",
"rollup": "^4.0.0-24"
},
"types": "./types/index.d.ts",
"types": "./dist/cjs/index.d.ts",
"ava": {
"workerThreads": false,
"files": [
Expand Down
Loading

0 comments on commit 38a2b3b

Please sign in to comment.