From a1a4b192868a55faaac2655c8f39d8a846677332 Mon Sep 17 00:00:00 2001 From: jeremy-babylonlabs Date: Thu, 21 Nov 2024 16:27:31 +0800 Subject: [PATCH 1/2] bump version --- package.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 26c14ec..df1f84d 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", From a5b682f11e285ee8dd56a6108f1c17aed9edabab Mon Sep 17 00:00:00 2001 From: jeremy-babylonlabs Date: Thu, 21 Nov 2024 16:59:40 +0800 Subject: [PATCH 2/2] improve npm config --- .npmignore | 8 ++++++++ package.json | 4 +--- tsconfig.app.json | 14 +++++++++++--- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..65848fe --- /dev/null +++ b/.npmignore @@ -0,0 +1,8 @@ +src/ +public/ +tests/ +.storybook/ +.husky/ +node_modules/ +**/*.test.* +**/__tests__/ diff --git a/package.json b/package.json index df1f84d..307592f 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,7 @@ "release": "npm run build && changeset publish" }, "files": [ - "src", - "dist", - "public" + "dist" ], "peerDependencies": { "react": "^18.3.1", diff --git a/tsconfig.app.json b/tsconfig.app.json index 44bf55c..751b6ca 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,6 +1,7 @@ { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "incremental": true, "target": "ES2020", "baseUrl": "./src", "useDefineForClassFields": true, @@ -13,9 +14,14 @@ "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, @@ -23,7 +29,9 @@ "noFallthroughCasesInSwitch": true, "paths": { "@/*": ["*", "./*"] - } + }, + "outDir": "dist" }, - "include": ["src"] + "include": ["src"], + "keywords": ["react", "ui-components", "babylonlabs", "bitcoin", "bitcoin-ui"] }