We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f40f8 commit ff54b81Copy full SHA for ff54b81
.github/workflows/publish.yml
@@ -29,7 +29,7 @@ jobs:
29
run: |
30
version=$(echo $TAG | grep -o -E "[0-9.]+")
31
git tag -d "v${version}"
32
- yarn publish --new-version $version ./lib
+ yarn publish --new-version $version
33
env:
34
TAG: ${{ github.ref }}
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package.json
@@ -10,12 +10,13 @@
10
"codegen"
11
],
12
"license": "MIT",
13
- "main": "index.js",
+ "main": "lib/index.js",
14
"files": [
15
"lib"
16
17
"scripts": {
18
- "build": "rimraf lib && tsc && cp package.json lib/package.json",
+ "build": "rimraf lib && tsc",
19
+ "prepublish": "yarn build",
20
"postversion": "git push && git push --tags -f",
21
"test": "jest"
22
},
0 commit comments