diff --git a/.changeset/khaki-mangos-search.md b/.changeset/khaki-mangos-search.md new file mode 100644 index 0000000..76c3c25 --- /dev/null +++ b/.changeset/khaki-mangos-search.md @@ -0,0 +1,7 @@ +--- +"reacord": patch +--- + +distribute d.ts files again instead of the source + +distributing the source causes typecheck errors when the modules it imports from (in this case, `@reacord/helpers`) don't exist in the end users' projects, so we'll just distribute d.ts files instead like normal. failed experiment :( diff --git a/packages/reacord/package.json b/packages/reacord/package.json index a52d167..88d2482 100644 --- a/packages/reacord/package.json +++ b/packages/reacord/package.json @@ -19,17 +19,16 @@ "reacord" ], "files": [ - "library", "dist", "README.md", "LICENSE" ], - "types": "./library/main.ts", + "types": "./dist/main.d.ts", "exports": { ".": { "import": "./dist/main.js", "require": "./dist/main.cjs", - "types": "./library/main.ts" + "types": "./dist/main.d.ts" }, "./package.json": { "import": "./package.json", @@ -37,7 +36,7 @@ } }, "scripts": { - "build": "cpy ../../README.md ../../LICENSE . && tsup library/main.ts --target node16 --format cjs,esm --sourcemap", + "build": "cpy ../../README.md ../../LICENSE . && tsup library/main.ts --target node16 --format cjs,esm --sourcemap --dts --dts-resolve", "build-watch": "pnpm build -- --watch", "test": "vitest --coverage --no-watch", "test-dev": "vitest",