Skip to content

Commit 0da667c

Browse files
authored
fix(package): Remove use of life cycle script (#363)
1 parent d1b3dd1 commit 0da667c

File tree

4 files changed

+3657
-4238
lines changed

4 files changed

+3657
-4238
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ jobs:
3030
- name: Install dependencies
3131
uses: ./.github/actions/dependencies
3232

33+
- name: Build Dist
34+
run: pnpm run build
35+
3336
- name: Run Tests
3437
run: pnpm --filter=@hcaptcha-react/lib run test:unit

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Install dependencies
3333
uses: ./.github/actions/dependencies
3434

35+
- name: Build Dist
36+
run: pnpm run build
37+
3538
- name: Run Tests
3639
run: pnpm --filter=@hcaptcha-react/lib run test:unit
3740

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hcaptcha/react-hcaptcha",
33
"description": "A React library for hCaptcha",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"author": "hCaptcha team and contributors",
66
"license": "MIT",
77
"repository": {
@@ -41,9 +41,8 @@
4141
"!**/*.tsbuildinfo"
4242
],
4343
"scripts": {
44-
"setup": "pnpm install --prefer-offline",
44+
"setup": "pnpm install --prefer-offline && pnpm --filter=@hcaptcha-react/lib run compile:build",
4545
"start": "concurrently 'pnpm --filter=@hcaptcha-react/lib run compile:watch' 'pnpm --filter=@hcaptcha-react/demo run start'",
46-
"postinstall": "pnpm --filter=@hcaptcha-react/lib run compile:build",
4746
"build": "pnpm --filter=@hcaptcha-react/lib run compile:build",
4847
"test": "pnpm --filter=@hcaptcha-react/lib run test:unit"
4948
},

0 commit comments

Comments
 (0)