Skip to content

Commit cbcc0d2

Browse files
committed
🔧 fix types-only package publishing issue
1 parent 6f3d747 commit cbcc0d2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build:skipmid": "tsc && npm run build:lib",
1717
"build:lib": "ts-node prebuild.ts",
1818
"docs": "npm run --prefix docs-v3 deploy_with_ssh_ci",
19+
"types:publish": "npm run --prefix types-only pub",
1920
"watch": "npm run build && tsc-watch ./src/index.ts --outDir ./dist --onSuccess \"node ./dist/index.js\" --onFailure \"echo Error while compiling\" --compiler typescript/bin/tsc",
2021
"clean": "rm -rf session && rm -rf dist",
2122
"clean:full": "rm -rf node_modules && npm run clean",

types-only/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "@open-wa/wa-automate-types-only",
3-
"version": "4.49.1",
3+
"version": "4.51.1",
44
"description": "Types generated from the @open-wa/wa-automate package",
55
"scripts": {
66
"build": "tsc",
7+
"deploy": "npm run build && npm version",
8+
"pub": "npm run build && npm run _ver && npm publish",
9+
"_ver": "awk -F'\"' '/\"version\": \".+\"/{ print $4; exit; }' ../package.json | xargs -I{} npm version {} --allow-same-version",
710
"test": "echo \"Error: no test specified\" && exit 1"
811
},
912
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)