Skip to content

Commit

Permalink
Tidy for npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Jan 15, 2024
1 parent e11c798 commit 3440a38
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/lib/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
admin_seed.txt
local-data
composedb.config.json
test.config.json
*.tsbuildinfo
.vscode
dist/test/
dist/scripts/
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rm -rf ./dist && tsc",
"build": "rm -rf ./dist && tsc --project tsconfig.build.json",
"populate": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/populate.ts",
"test": "export ADMIN_SEED=$(<../composedb/admin_seed.txt) && vitest --run --config vitest.config.ts"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/lib/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"exclude": [
"test/**/*",
"vitest*",
"dist"
]
}

0 comments on commit 3440a38

Please sign in to comment.