add build script

This commit is contained in:
dholms 2023-05-15 22:06:25 -05:00
parent 531aab43b1
commit 285ef14a68
2 changed files with 23 additions and 1 deletions

View File

@ -7,7 +7,8 @@
"author": "dholms <dtholmgren@gmail.com>", "author": "dholms <dtholmgren@gmail.com>",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"start": "ts-node src/index.ts" "start": "ts-node src/index.ts",
"build": "tsc"
}, },
"dependencies": { "dependencies": {
"@atproto/did-resolver": "^0.1.0", "@atproto/did-resolver": "^0.1.0",

21
tsconfig.json Normal file
View File

@ -0,0 +1,21 @@
{
"compilerOptions": {
"lib": [
"ESNext",
],
"outDir": "dist",
"module": "CommonJS",
"target": "ES6",
"esModuleInterop": true,
"moduleResolution": "node",
"alwaysStrict": true,
"allowUnreachableCode": false,
"strictNullChecks": true,
"skipLibCheck": true
},
"include": ["./src/**/*.ts"],
"exclude": [
"node_modules"
]
}