Skip to content

Commit 328ff72

Browse files
committed
Add release config
1 parent 7ea0854 commit 328ff72

File tree

3 files changed

+2202
-15
lines changed

3 files changed

+2202
-15
lines changed

.release-it.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"github": {
3+
"release": true,
4+
"tag": true,
5+
"commit": true,
6+
"autoGenerate": true
7+
},
8+
"npm": {
9+
"publish": true
10+
}
11+
}

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@
22
"name": "@saleor/json-schema-compiler",
33
"version": "0.0.0",
44
"description": "",
5-
"bin": "./dist/index.js",
5+
"main": "./dist/index.js",
6+
"bin": {
7+
"@saleor/schema-compiler": "./dist/index.js"
8+
},
9+
"repository": "github:saleor/json-schema-compiler",
10+
"homepage": "https://github.com/saleor/json-schema-compiler#readme",
11+
"bugs": "https://github.com/saleor/json-schema-compiler/issues",
612
"scripts": {
713
"dev": "pnpm _base --source-map --watch",
814
"build": "pnpm _base --minify",
915
"_base": "ncc build src/cli.mts --source-map -o dist --license LICENSE --target es2023",
1016
"test": "vitest",
1117
"lint": "eslint --cache --fix src",
1218
"lint:ci": "eslint --cache src",
13-
"prepare": "husky install"
19+
"prepare": "husky install",
20+
"clean": "rm -rf dist",
21+
"prepublishOnly": "pnpm clean && pnpm build"
1422
},
1523
"keywords": [],
1624
"author": "Michał Miszczyszyn <michal@mmiszy.pl> (https://typeofweb.com/)",
@@ -29,6 +37,7 @@
2937
"husky": "8.0.3",
3038
"lint-staged": "13.2.2",
3139
"prettier": "2.8.8",
40+
"release-it": "15.11.0",
3241
"typescript": "5.1.3",
3342
"vitest": "0.32.2"
3443
},
@@ -39,5 +48,8 @@
3948
"commander": "11.0.0",
4049
"figlet": "1.6.0",
4150
"json-schema-to-typescript": "13.0.2"
51+
},
52+
"publishConfig": {
53+
"access": "public"
4254
}
4355
}

0 commit comments

Comments
 (0)