From d6486356d1ac952c25bba39749274cec7462daf9 Mon Sep 17 00:00:00 2001 From: Dan Kochetov Date: Sun, 23 Apr 2023 17:04:59 +0300 Subject: [PATCH] Remove redundant package.json copying --- changelogs/drizzle-orm/0.25.1.md | 1 + drizzle-orm/package.json | 4 ++-- drizzle-zod/package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelogs/drizzle-orm/0.25.1.md diff --git a/changelogs/drizzle-orm/0.25.1.md b/changelogs/drizzle-orm/0.25.1.md new file mode 100644 index 000000000..ee83fda61 --- /dev/null +++ b/changelogs/drizzle-orm/0.25.1.md @@ -0,0 +1 @@ +- 🐛 Fix package.json `exports` field diff --git a/drizzle-orm/package.json b/drizzle-orm/package.json index b75bb4238..a917321ed 100644 --- a/drizzle-orm/package.json +++ b/drizzle-orm/package.json @@ -1,6 +1,6 @@ { "name": "drizzle-orm", - "version": "0.25.0", + "version": "0.25.1", "description": "Drizzle ORM package for SQL databases", "type": "module", "scripts": { @@ -8,7 +8,7 @@ "b": "pnpm build", "test:types": "cd type-tests && tsc", "test": "vitest run", - "pack": "cp package.json dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", + "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", "publish": "npm publish package.tgz" }, "main": "./index.cjs", diff --git a/drizzle-zod/package.json b/drizzle-zod/package.json index 07680fefe..f02704b21 100644 --- a/drizzle-zod/package.json +++ b/drizzle-zod/package.json @@ -7,7 +7,7 @@ "build": "rimraf dist && rollup --config rollup.config.ts --configPlugin typescript && resolve-tspaths && cp README.md package.json dist/", "b": "pnpm build", "test:types": "cd tests && tsc", - "pack": "cp package.json dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", + "pack": "(cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz", "publish": "npm publish package.tgz", "test": "ava tests" },