Skip to content

Commit

Permalink
add typings to package
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Sep 25, 2023
1 parent feab769 commit 53807b8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-buckets-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chialab/quantum': patch
---

Add typings to package.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lerna-debug.log*
node_modules
public
coverage
types
*.local
docs/.vitepress/dist
docs/.vitepress/cache
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"type": "module",
"main": "src/index.js",
"module": "src/index.js",
"types": "types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./src/index.js"
}
},
Expand All @@ -22,6 +24,7 @@
"author": "Chialab <[email protected]> (https://www.chialab.it)",
"files": [
"src",
"types",
"CHANGELOG.md",
"LICENSE",
"README.md"
Expand All @@ -35,7 +38,8 @@
"bench": "vitest bench",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
"docs:preview": "vitepress preview docs",
"prepack": "tsc"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"declaration": true,
"declarationDir": "types",
"emitDeclarationOnly": true,

/* Linting */
"strict": true,
Expand Down

0 comments on commit 53807b8

Please sign in to comment.