From dcd986f9e6441f5f240c25f5cb64478c0fe937b0 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 17 Jul 2020 09:19:16 -0400 Subject: [PATCH] ts sheet --- pnpm-lock.yaml | 8 ++++++++ pnpm-workspace.yaml | 1 + tools/sheet/{index.js => index.ts} | 0 tools/sheet/package.json | 14 +++++++++++++- tools/sheet/tsconfig.json | 6 ++++++ 5 files changed, 28 insertions(+), 1 deletion(-) rename tools/sheet/{index.js => index.ts} (100%) create mode 100644 tools/sheet/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ec5b918..463e359e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,14 @@ importers: commander: ^5.1.0 debug: ^4.1.1 typescript: ^3.9.7 + tools/sheet: + dependencies: + '@types/node': 14.0.23 + devDependencies: + typescript: 3.9.7 + specifiers: + '@types/node': ^14.0.23 + typescript: ^3.9.7 tools/sprites: dependencies: commander: 5.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 82b1985c..4425164e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,5 +3,6 @@ packages: - 'tools/tupctime' - 'tools/deploy' - 'tools/deflopt' + - 'tools/sheet' - 'tools/trim' - "data/lib" diff --git a/tools/sheet/index.js b/tools/sheet/index.ts similarity index 100% rename from tools/sheet/index.js rename to tools/sheet/index.ts diff --git a/tools/sheet/package.json b/tools/sheet/package.json index 6990891f..c9db082f 100644 --- a/tools/sheet/package.json +++ b/tools/sheet/package.json @@ -1 +1,13 @@ -{"type": "module"} +{ + "type": "module", + "scripts": { + "prepare": "tsc" + }, + "devDependencies": { + "typescript": "^3.9.7" + }, + "dependencies": { + "@types/node": "^14.0.23" + }, + "main": "./dist/index.js" +} diff --git a/tools/sheet/tsconfig.json b/tools/sheet/tsconfig.json new file mode 100644 index 00000000..e37f4e41 --- /dev/null +++ b/tools/sheet/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig-base", + "compilerOptions": { + "outDir": "dist", + } +}