Skip to content

Commit ff54b81

Browse files
committed
Fix published files
1 parent 96f40f8 commit ff54b81

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
version=$(echo $TAG | grep -o -E "[0-9.]+")
3131
git tag -d "v${version}"
32-
yarn publish --new-version $version ./lib
32+
yarn publish --new-version $version
3333
env:
3434
TAG: ${{ github.ref }}
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
"codegen"
1111
],
1212
"license": "MIT",
13-
"main": "index.js",
13+
"main": "lib/index.js",
1414
"files": [
1515
"lib"
1616
],
1717
"scripts": {
18-
"build": "rimraf lib && tsc && cp package.json lib/package.json",
18+
"build": "rimraf lib && tsc",
19+
"prepublish": "yarn build",
1920
"postversion": "git push && git push --tags -f",
2021
"test": "jest"
2122
},

0 commit comments

Comments
 (0)