From 41a3ad8f6a9e778d3ce1a54505f956d3db60bb3d Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 14 Aug 2023 14:37:55 -0400 Subject: [PATCH] finish setting up dev dependencies properly --- package-lock.json | 11 +++++++++-- package.json | 6 +++++- rollup.config.js | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95a2e22..afe94ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,9 @@ "@types/chrome": "^0.0.242", "@types/node": "^20.5.0", "dprint": "^0.40.2", - "rollup": "^3.26.3" + "rollup": "^3.26.3", + "tslib": "^2.6.1", + "typescript": "^5.1.6" } }, "node_modules/@dprint/darwin-arm64": { @@ -322,12 +324,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tslib": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", + "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==", + "dev": true + }, "node_modules/typescript": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", "dev": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 119a5ab..74d295b 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "main": "build/index.js", "type": "module", "scripts": { + "build": "rollup -c", + "build:watch": "rollup -c --watch", "fmt": "dprint fmt" }, "devDependencies": { @@ -12,6 +14,8 @@ "@types/chrome": "^0.0.242", "@types/node": "^20.5.0", "dprint": "^0.40.2", - "rollup": "^3.26.3" + "rollup": "^3.26.3", + "tslib": "^2.6.1", + "typescript": "^5.1.6" } } diff --git a/rollup.config.js b/rollup.config.js index fc11268..20f9f4b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -8,7 +8,7 @@ export default defineConfig({ dir: 'build', }, external: [ - 'node:fs', + 'node:fs/promises', 'node:path', ], plugins: [