From ad8a795f2ebb45ba0b38b09ea87df829f7f9aa1a Mon Sep 17 00:00:00 2001 From: Giglium Date: Thu, 10 Apr 2025 18:17:28 +0200 Subject: [PATCH] fix: package paths and add npm prepare script - Add 'prepare' script - Update paths from 'lib/' to 'dist/lib/' - Remove redundant build step from publish workflow (now handled by prepare hook) --- .github/workflows/publish.yaml | 1 - package.json | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1a799ea..e6eabb2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,7 +20,6 @@ jobs: registry-url: "https://registry.npmjs.org" - run: npm ci - - run: npm run build - run: npm publish ./dist env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 4206277..fa1e230 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,13 @@ "test:tm": "cross-env EXT=tampermonkey playwright test", "test:vm": "cross-env EXT=violentmonkey playwright test", "test:tm:d": "npm run test:tm -- --debug --headed", - "test:tm:ui": "npm run test:tm -- --ui --headed" + "test:tm:ui": "npm run test:tm -- --ui --headed", + "prepare": "npm run build" }, - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "dist/lib/index.js", + "types": "dist/lib/index.d.ts", "files": [ - "lib", + "dist", "README.md" ], "repository": {