From e519aba7384bd5a0d1b00c60d7979a925481e688 Mon Sep 17 00:00:00 2001 From: Sean Meininger Date: Sun, 9 Oct 2022 21:30:21 -0700 Subject: [PATCH] fixed dependencies for main --- package-lock.json | 7 +++---- package.json | 3 ++- src/main.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9211fd..e5c5a32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,8 @@ "@types/node": "^18.8.2", "@vscode/ripgrep": "^1.14.2", "ts-node": "^10.9.1", - "ts-node-dev": "^2.0.0" + "ts-node-dev": "^2.0.0", + "typescript": "^4.8.4" } }, "node_modules/@cspotcode/source-map-support": { @@ -749,7 +750,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "dev": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -1336,8 +1336,7 @@ "version": "4.8.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "peer": true + "dev": true }, "v8-compile-cache-lib": { "version": "3.0.1", diff --git a/package.json b/package.json index d67b40e..a7d89b4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "@types/node": "^18.8.2", "@vscode/ripgrep": "^1.14.2", "ts-node": "^10.9.1", - "ts-node-dev": "^2.0.0" + "ts-node-dev": "^2.0.0", + "typescript": "^4.8.4" }, "scripts": { "start": "ts-node ./src/main.ts", diff --git a/src/main.ts b/src/main.ts index af95c56..0f9bc8a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node // Most of the Typescript essentials are from: https://www.section.io/engineering-education/how-to-use-typescript-with-nodejs/ - +const fs = require("fs"); import {generateHereDoc, functionUrls} from "./lib/configHeredoc"; import {ripGrep} from "./lib/ripGrep"; import { ensureFileExists } from "lib/fileOperations";