Skip to content

Commit

Permalink
Merge pull request #9 from babylonlabs-io/add-type-declarations
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
jeremy-babylonlabs authored Nov 21, 2024
2 parents a975a04 + a5b682f commit 812bc6c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src/
public/
tests/
.storybook/
.husky/
node_modules/
**/*.test.*
**/__tests__/
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@babylonlabs-io/bbn-core-ui",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"types": "dist/index.d.ts",
"publishConfig": {
Expand All @@ -12,9 +12,11 @@
},
"main": "dist/index.cjs.js",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.es.js"
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.es.js"
}
},
"scripts": {
"dev": "npm run storybook",
Expand All @@ -28,9 +30,7 @@
"release": "npm run build && changeset publish"
},
"files": [
"src",
"dist",
"public"
"dist"
],
"peerDependencies": {
"react": "^18.3.1",
Expand Down
14 changes: 11 additions & 3 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"incremental": true,
"target": "ES2020",
"baseUrl": "./src",
"useDefineForClassFields": true,
Expand All @@ -13,17 +14,24 @@
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"noEmit": false,
"jsx": "react-jsx",

/* Declarations */
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "dist",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"paths": {
"@/*": ["*", "./*"]
}
},
"outDir": "dist"
},
"include": ["src"]
"include": ["src"],
"keywords": ["react", "ui-components", "babylonlabs", "bitcoin", "bitcoin-ui"]
}

0 comments on commit 812bc6c

Please sign in to comment.