diff --git a/bun.lockb b/bun.lockb index 6908c42..e19e546 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 66b5586..ba3e42a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@thilawyn/thilatrait", - "version": "20231230.0.0", + "version": "0.1.0", "type": "module", "publishConfig": { "registry": "https://git.jvalver.de/api/packages/thilawyn/npm/" @@ -21,7 +21,7 @@ } }, "scripts": { - "build": "rollup -c", + "build": "rollup -c rollup.config.ts", "lint:tsc": "tsc --noEmit", "clean:cache": "rm -f tsconfig.tsbuildinfo", "clean:dist": "rm -rf dist", @@ -31,10 +31,11 @@ "type-fest": "^4.9.0" }, "devDependencies": { + "@rollup/plugin-node-resolve": "^15.2.3", "bun-types": "latest", "npm-check-updates": "^16.14.12", "npm-sort": "^0.0.4", - "rollup": "^4.9.1", + "rollup": "^4.9.2", "rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-ts": "^3.4.5", "tsx": "^4.7.0", diff --git a/rollup.config.js b/rollup.config.ts similarity index 83% rename from rollup.config.js rename to rollup.config.ts index da6b231..bca2cda 100644 --- a/rollup.config.js +++ b/rollup.config.ts @@ -1,3 +1,4 @@ +import { nodeResolve } from "@rollup/plugin-node-resolve" import { defineConfig } from "rollup" import cleanup from "rollup-plugin-cleanup" import ts from "rollup-plugin-ts" @@ -19,7 +20,10 @@ export default defineConfig({ }, ], + external: id => !/^[./]/.test(id), + plugins: [ + nodeResolve(), ts(), cleanup({