Skip to content

Commit

Permalink
Merge pull request #2468 from himself65/types
Browse files Browse the repository at this point in the history
build: add 'types' section in exports
  • Loading branch information
bashmish authored Oct 19, 2023
2 parents b1e29d5 + 640ba85 commit 141e435
Show file tree
Hide file tree
Showing 28 changed files with 58 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .changeset/cold-moons-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
'@web/test-runner-junit-reporter': patch
'@web/test-runner-browserstack': patch
'@web/test-runner-coverage-v8': patch
'@web/dev-server-import-maps': patch
'@web/test-runner-playwright': patch
'rollup-plugin-workbox': patch
'@web/test-runner-puppeteer': patch
'@web/test-runner-saucelabs': patch
'@web/test-runner-webdriver': patch
'@web/dev-server-storybook': patch
'@web/test-runner-commands': patch
'@web/test-runner-selenium': patch
'@web/dev-server-esbuild': patch
'@web/rollup-plugin-copy': patch
'@web/test-runner-chrome': patch
'@web/dev-server-legacy': patch
'@web/dev-server-rollup': patch
'@web/polyfills-loader': patch
'@web/test-runner-core': patch
'@web/dev-server-core': patch
'@web/dev-server-hmr': patch
'@web/config-loader': patch
'@web/browser-logs': patch
'@web/parse5-utils': patch
'@web/dev-server': patch
---

added types for main entry point
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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-core/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-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
2 changes: 1 addition & 1 deletion packages/dev-server-storybook/src/serve/storybookPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function storybookPlugin(pluginConfig: StorybookPluginConfig): Plugin {
return {
name: 'storybook',

serverStart(args: { config: unknown }) {
serverStart(args: { config: DevServerCoreConfig }) {
serverConfig = args.config;
},

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
2 changes: 2 additions & 0 deletions packages/storybook-framework-web-components/package.json.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// this file is autogenerated with the generate-mjs-dts-entrypoints script
export * from './package';
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 141e435

Please sign in to comment.