From 5237508f2ba1f8102b053d9a88958da179f9cedb Mon Sep 17 00:00:00 2001 From: John Harlow Date: Fri, 11 Oct 2024 16:01:06 -0700 Subject: [PATCH] test --- .github/workflows/main-merge.yml | 13 ++++++------- package.json | 5 ++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main-merge.yml b/.github/workflows/main-merge.yml index 5a7d0e8..ec8e925 100644 --- a/.github/workflows/main-merge.yml +++ b/.github/workflows/main-merge.yml @@ -49,13 +49,12 @@ jobs: with: node-version: "20" cache: "pnpm" - - name: Pack the package - run: pnpm pack - - name: Publish tarball to npm 🚀 + - name: Install packages + run: pnpm install + - name: Run build command + run: pnpm build + - name: Publish to npm 🚀 shell: bash - run: |- - cat package.json | - jq '.version' | - xargs -I {} pnpm publish zod-to-dynamodb-onetable-schema-{}.tgz --access public --no-git-checks + run: pnpm publish --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index e6119e9..f6f8dc9 100644 --- a/package.json +++ b/package.json @@ -18,15 +18,14 @@ "bugs": { "url": "httckaps://github.com/jharlow/zod-to-dynamodb-onetable-schema/issues" }, - "main": "index.ts", + "exports": "./lib/index.js", + "types": "./lib/index.d.ts", "files": [ "lib", "README.md", "package.json" ], "type": "module", - "exports": "./lib/index.js", - "types": "./lib/index.d.ts", "scripts": { "build": "tsc", "clean": "tsc --build --clean && rm -rf lib",