From 285ef14a682736bdf44261a0ef2a8c4d3dcc5723 Mon Sep 17 00:00:00 2001 From: dholms Date: Mon, 15 May 2023 22:06:25 -0500 Subject: [PATCH] add build script --- package.json | 3 ++- tsconfig.json | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index f4e8b3f..c058179 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "author": "dholms ", "license": "MIT", "scripts": { - "start": "ts-node src/index.ts" + "start": "ts-node src/index.ts", + "build": "tsc" }, "dependencies": { "@atproto/did-resolver": "^0.1.0", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..ab357f4 --- /dev/null +++ b/tsconfig.json @@ -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" + ] +} \ No newline at end of file