Skip to content

Commit

Permalink
Use build dir instead of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Apr 13, 2024
1 parent af066d5 commit 6f7e6de
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build/
coverage/
dist/
node_modules/
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const tsConfig = require('./tsconfig.json');
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,ts}'],
coveragePathIgnorePatterns: ['node_modules/', '/dist/', 'index.ts', 'lib/index.ts'],
coveragePathIgnorePatterns: ['node_modules/', '/build/', 'index.ts', 'lib/index.ts'],
coverageReporters: ['html'],
coverageThreshold: {
global: {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"engines": {
"node": ">=20"
},
"main": "./dist/index.js",
"main": "./build/index.js",
"license": "MIT",
"author": {
"name": "Kamil Mielnik",
Expand All @@ -32,17 +32,17 @@
},
"homepage": "https://github.com/kamilmielnik/trie#readme",
"files": [
"dist/**"
"build/**"
],
"types": "./dist/index.d.ts",
"types": "./build/index.d.ts",
"np": {
"yarn": false
},
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "rimraf coverage dist docs",
"clean": "rimraf build coverage docs",
"build": "tsc --project .",
"build:docs": "typedoc",
"postbuild": "npm run build:docs",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./dist",
"outDir": "./build",
"rootDir": "./src",
"strict": true,
"target": "esnext"
Expand Down

0 comments on commit 6f7e6de

Please sign in to comment.