Skip to content

Commit

Permalink
Add changelog:release script to all packages, remove unused cli dep (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored Oct 17, 2023
1 parent 746426f commit 326b4bf
Show file tree
Hide file tree
Showing 13 changed files with 739 additions and 135 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"devDependencies": {
"@actions/core": "^1.10.0",
"@babel/preset-env": "^7.16.11",
"@geut/chan": "^3.2.9",
"@octokit/request": "^5.6.3",
"@types/cron-converter": "^1",
"@types/node": "^18.16.10",
Expand Down
9 changes: 3 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"bugs": "https://github.com/subquery/subql/issues",
"dependencies": {
"@oclif/core": "^2.15.0",
"@oclif/plugin-help": "^3.2.3",
"@subql/common": "workspace:*",
"@subql/common-algorand": "^3.0.0",
"@subql/common-cosmos": "^3.0.1",
Expand Down Expand Up @@ -74,10 +73,7 @@
"main": "lib/index.js",
"oclif": {
"commands": "./lib/commands",
"bin": "subql",
"plugins": [
"@oclif/plugin-help"
]
"bin": "subql"
},
"scripts": {
"build": "rm -rf lib && tsc -b && cp -r src/template lib/",
Expand All @@ -86,7 +82,8 @@
"prepack": "yarn build && oclif manifest && oclif readme",
"test": "echo NO TESTS",
"version": "oclif readme && git add README.md",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"cli/\""
},
"types": "lib/index.d.ts",
"resolutions": {
Expand Down
3 changes: 2 additions & 1 deletion packages/common-substrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build": "rm -rf dist && tsc -b",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"common-substrate/\""
},
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand Down
3 changes: 2 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build": "rm -rf dist && tsc -b",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"common/\""
},
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand Down
3 changes: 2 additions & 1 deletion packages/node-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && tsc -b",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"node-core/\""
},
"author": "Ian He",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nodemon",
"start:prod": "node dist/main"
"start:prod": "node dist/main",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"node/\""
},
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand Down
3 changes: 2 additions & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"query/\""
},
"author": "ZheX",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "2.0.3-0",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && tsc -b"
"build": "rm -rf dist && tsc -b",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"testing/\""
},
"main": "dist/index.js",
"license": "GPL-3.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/types-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"repository": "github:subquery/subql",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && tsc -b"
"build": "rm -rf dist && tsc -b",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"types-core/\""
},
"author": "Ian He",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"repository": "github:subquery/subql",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && tsc -b"
"build": "rm -rf dist && tsc -b",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"types/\""
},
"author": "Ian He",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"packageManager": "[email protected]",
"scripts": {
"build": "tsc -b"
"build": "tsc -b",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"utils/\""
},
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand Down
3 changes: 2 additions & 1 deletion packages/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"repository": "github:subquery/subql",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && tsc -b"
"build": "rm -rf dist && tsc -b",
"changelog:release": "echo \"Updating changelog $npm_package_version\" && npx chan release $npm_package_version --git-url \"https://github.com/subquery/subql\" --release-prefix=\"validator/\""
},
"author": "ZheX",
"main": "dist/index.js",
Expand Down
Loading

0 comments on commit 326b4bf

Please sign in to comment.