Skip to content

Commit

Permalink
Merge pull request #15 from algorandfoundation/chore/update-build-con…
Browse files Browse the repository at this point in the history
…figs

build: update build configuration
  • Loading branch information
ehanoc authored Oct 31, 2024
2 parents e286d0d + 4754c14 commit d5325fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github
.vscode
docs
examples
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
}
},
"scripts": {
"build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.json",
"build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
"test": "jest lib --verbose",
"test:cov": "jest lib --coverage",
"typedoc": "typedoc"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"compilerOptions": {
"outDir": "./dist/cjs",
"module": "commonjs",
"target": "es5"
"target": "es5",
"declaration": false
},
"extends": "./tsconfig.json"
}

0 comments on commit d5325fe

Please sign in to comment.