From c565acb65dc4a3091276090bc409c9580f9bd793 Mon Sep 17 00:00:00 2001 From: Sergiu Danalachi Date: Mon, 22 Apr 2024 12:57:17 +0300 Subject: [PATCH] fix: ci --- .github/workflows/ci.yml | 4 +- packages/vanilla-hcaptcha/package.json | 1 + packages/vanilla-hcaptcha/rollup.config.js | 6 +- pnpm-lock.yaml | 71 ++++++++++++++++++++++ 4 files changed, 79 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bdb333..b2699b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,9 @@ jobs: - run: pnpm run setup - - run: pnpm build + - run: pnpm --filter=@hcaptcha/vanilla-hcaptcha run build + + - run: pnpm --filter=\!@hcaptcha/vanilla-hcaptcha run build - run: pnpm typecheck diff --git a/packages/vanilla-hcaptcha/package.json b/packages/vanilla-hcaptcha/package.json index 3009c7d..a4e523e 100644 --- a/packages/vanilla-hcaptcha/package.json +++ b/packages/vanilla-hcaptcha/package.json @@ -39,6 +39,7 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "rollup": "^2.74.1", + "rollup-plugin-delete": "^2.0.0", "rollup-plugin-filesize": "^9.1.2", "rollup-plugin-terser": "^7.0.2", "tslib": "^2.6.2", diff --git a/packages/vanilla-hcaptcha/rollup.config.js b/packages/vanilla-hcaptcha/rollup.config.js index cbf4c9d..8cfaa4c 100644 --- a/packages/vanilla-hcaptcha/rollup.config.js +++ b/packages/vanilla-hcaptcha/rollup.config.js @@ -1,6 +1,7 @@ -import { terser } from "rollup-plugin-terser"; -import filesize from "rollup-plugin-filesize"; +import { terser } from 'rollup-plugin-terser'; +import filesize from 'rollup-plugin-filesize'; import typescript from '@rollup/plugin-typescript'; +import del from 'rollup-plugin-delete'; export default { input: './src/index.ts', @@ -16,6 +17,7 @@ export default { sourcemap: true }], plugins: [ + del({ targets: 'dist/*' }), typescript({ tsconfig: './tsconfig.json' }), terser(), filesize() diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1ea373..9e8fdd9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -141,6 +141,9 @@ importers: rollup: specifier: ^2.74.1 version: 2.79.1 + rollup-plugin-delete: + specifier: ^2.0.0 + version: 2.0.0 rollup-plugin-filesize: specifier: ^9.1.2 version: 9.1.2 @@ -4138,6 +4141,13 @@ packages: '@types/serve-static': 1.15.7 dev: true + /@types/glob@7.2.0: + resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} + dependencies: + '@types/minimatch': 5.1.2 + '@types/node': 20.12.7 + dev: true + /@types/graceful-fs@4.1.9: resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} dependencies: @@ -4190,6 +4200,10 @@ packages: resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} dev: true + /@types/minimatch@5.1.2: + resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} + dev: true + /@types/node-forge@1.3.11: resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} dependencies: @@ -4646,6 +4660,11 @@ packages: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: true + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + /asn1@0.2.6: resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} dependencies: @@ -5648,6 +5667,20 @@ packages: engines: {node: '>=8'} dev: true + /del@5.1.0: + resolution: {integrity: sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==} + engines: {node: '>=8'} + dependencies: + globby: 10.0.2 + graceful-fs: 4.2.11 + is-glob: 4.0.3 + is-path-cwd: 2.2.0 + is-path-inside: 3.0.3 + p-map: 3.0.0 + rimraf: 3.0.2 + slash: 3.0.0 + dev: true + /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} @@ -6474,6 +6507,20 @@ packages: engines: {node: '>=4'} dev: true + /globby@10.0.2: + resolution: {integrity: sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==} + engines: {node: '>=8'} + dependencies: + '@types/glob': 7.2.0 + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + glob: 7.2.3 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + /globby@13.2.2: resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -6952,6 +6999,16 @@ packages: engines: {node: '>=0.12.0'} dev: true + /is-path-cwd@2.2.0: + resolution: {integrity: sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==} + engines: {node: '>=6'} + dev: true + + /is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + dev: true + /is-plain-obj@3.0.0: resolution: {integrity: sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==} engines: {node: '>=10'} @@ -8712,6 +8769,13 @@ packages: p-limit: 4.0.0 dev: true + /p-map@3.0.0: + resolution: {integrity: sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==} + engines: {node: '>=8'} + dependencies: + aggregate-error: 3.1.0 + dev: true + /p-map@4.0.0: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} engines: {node: '>=10'} @@ -9436,6 +9500,13 @@ packages: glob: 7.2.3 dev: true + /rollup-plugin-delete@2.0.0: + resolution: {integrity: sha512-/VpLMtDy+8wwRlDANuYmDa9ss/knGsAgrDhM+tEwB1npHwNu4DYNmDfUL55csse/GHs9Q+SMT/rw9uiaZ3pnzA==} + engines: {node: '>=10'} + dependencies: + del: 5.1.0 + dev: true + /rollup-plugin-filesize@9.1.2: resolution: {integrity: sha512-m2fE9hFaKgWKisJzyWXctOFKlgMRelo/58HgeC0lXUK/qykxiqkr6bsrotlvo2bvrwPsjgT7scNdQSr6qtl37A==} engines: {node: '>=10.0.0'}