Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHARD-1210: Add release commands #6

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
result
build
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const shardusDebug = require('@shardus/debug-tool')

module.exports = {
register: {
network: ...shardusNetwork.register,
debug: ...shardusDebug.register
network: shardusNetwork.register,
debug: shardusDebug.register
},
lib: {
network: ...shardusNetwork.lib,
debug: ...shardusDebug.lib
network: shardusNetwork.lib,
debug: shardusDebug.lib
}
}
90 changes: 65 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "shardus",
"name": "@shardeum-foundation/tools-shardus-cli",
"version": "4.3.0",
"description": "The Shardus command line tool.",
"main": "index.js",
"scripts": {
"release": "np --no-cleanup --no-tests --no-yarn",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint",
"format-check": "prettier --check '**.js'"
"format-check": "prettier --check '**.js'",
"compile": "tsc -p .",
"prepare": "npm run compile",
"release:prerelease": "npm version prerelease --preid=prerelease && git push --follow-tags && npm publish --tag prerelease",
"release:patch": "npm version patch && git push --follow-tags && npm publish",
"release:minor": "npm version minor && git push --follow-tags && npm publish",
"release:major": "npm version major && git push --follow-tags && npm publish"
},
"repository": {
"type": "git",
Expand All @@ -22,14 +27,16 @@
"author": "Shardus",
"license": "ISC",
"dependencies": {
"@shardus/debug-tool": "git+https://github.com/shardeum/tools-shardus-cli-debugger#v1.0.2",
"@shardus/network-tool": "git+https://github.com/shardeum/tools-cli-shardus-network#v4.4.0",
"@shardeum-foundation/tools-shardus-cli-debugger": "1.0.2",
"@shardeum-foundation/tools-shardus-cli-network": "4.4.0",
"caporal": "1.4.0",
"shelljs": "0.8.5",
"eslint": "8.43.0"
},
"devDependencies": {
"standard": "13.1.0",
"@types/node": "18.19.1",
"typescript": "5.7.2",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-security": "1.7.1",
"prettier": "2.7.1",
Expand Down
19 changes: 19 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"lib": ["ES2021"],
"module": "commonjs",
"target": "ES2021",
"allowJs": true,
"strict": false,
"noImplicitAny": false,
"strictNullChecks": false,
"noImplicitReturns": false,
"noImplicitThis": false,
"esModuleInterop": true
},
"exclude": ["build", "node_modules"],
"include": ["*.ts", "*.js"],
"allowSyntheticDefaultImports": true
}
Loading