Skip to content

Commit

Permalink
Add a "types" condition to viz exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines committed Oct 17, 2023
1 parent f09f27a commit 03b6ad8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/viz-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ jobs:
run: |
yarn install --frozen-lockfile
yarn check-types
yarn check-types-esnext
working-directory: packages/viz/test/types
1 change: 1 addition & 0 deletions packages/viz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "MIT",
"types": "types/index.d.ts",
"exports": {
"types": "./types/index.d.ts",
"import": "./lib/viz-standalone.mjs",
"require": "./lib/viz-standalone.js"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/viz/test/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"typescript": "^5.1.3"
},
"scripts": {
"check-types": "tsc --strict --lib es2015,dom --noEmit *.ts"
"check-types": "tsc --strict --lib es2015,dom --noEmit *.ts",
"check-types-esnext": "tsc --strict --lib es2015,dom --module esnext --moduleResolution bundler --noEmit *.ts"
}
}

0 comments on commit 03b6ad8

Please sign in to comment.