Skip to content

Commit

Permalink
build: add 'types' section in exports
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored and bashmish committed Oct 19, 2023
1 parent b1e29d5 commit 521ea5f
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser-logs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/config-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./src/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server-hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server-import-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/parse5-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "src/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./src/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/polyfills-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/rollup-plugin-copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"module": "index.mjs",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./src/copy.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/rollup-plugin-workbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"module": "index.mjs",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-browserstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"default": "./browser/commands.mjs"
},
"./plugins": {
"types": "./plugins.d.ts",
"import": "./plugins.mjs",
"require": "./dist/index.js"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/test-runner-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
"module": "./index.mjs",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
},
"./test-helpers": {
"types": "./dist/test-helpers.d.ts",
"import": "./test-helpers.mjs",
"require": "./dist/test-helpers.js"
},
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-junit-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-saucelabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-selenium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-runner-webdriver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
Expand Down

0 comments on commit 521ea5f

Please sign in to comment.