Skip to content

Commit

Permalink
package.json, tsconfig,
Browse files Browse the repository at this point in the history
  • Loading branch information
mlibre committed May 22, 2024
1 parent 0ab1fb5 commit 3f9bb69
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/db
Submodule db updated from c3ae0a to ef2a90
2 changes: 1 addition & 1 deletion dist/API/config.js

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

2 changes: 1 addition & 1 deletion dist/API/config.js.map

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

2 changes: 1 addition & 1 deletion dist/test/signTransaction.js

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

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
"description": "GoodChain: Blockchain for Everyone",
"main": "index.js",
"type": "module",
"repository": {
"url": "https://github.com/mlibre/GoodChain",
"type": "git"
},
"engines": {
"node": ">=20"
},
"scripts": {
"3000": "tsx ./src/API/app.ts --host 'http://127.0.0.1:3000' --nodes 'http://127.0.0.1:3001' --dbPath './assets/db/' --minerKeysFile './assets/keys/miner.json' --name 'GoodChain'",
"3001": "tsx ./src/API/app.ts --host 'http://127.0.0.1:3001' --nodes 'http://127.0.0.1:3000' --dbPath './assets/db/' --minerKeysFile './assets/keys/miner.json' --name 'GoodChain'",
"3002": "tsx ./src/API/app.ts --host 'http://127.0.0.1:3002' --nodes 'http://127.0.0.1:3000' --dbPath './assets/db/' --minerKeysFile './assets/keys/miner.json' --name 'GoodChain'",
"start": "tsx ./src/API/app.ts",
"build": "rm -r dist && tsc",
"buildw": "rm -r dist && tsc --watch",
"watch": "rm -r dist && tsc --watch",
"dev": "tsc && nodemon ./src/API/app.ts",
"start": "tsx ./src/API/app.ts",
"startjs": "node ./src/API/app.js"
},
"author": "mlibre",
Expand All @@ -39,7 +43,7 @@
"@types/lodash": "^4.17.1",
"@types/minimist": "^1.2.5",
"@types/morgan": "^1.9.9",
"@types/node": "^20.12.11",
"@types/node": "^20.12.12",
"@types/uuid": "^9.0.8",
"eslint": "^8.57.0",
"globals": "^15.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/API/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseUrl } from "./utils";
import { parseUrl } from "./utils.js";
import parseArgs from "minimist";

// Parse command line arguments
Expand Down
2 changes: 1 addition & 1 deletion src/test/signTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const trx = new Transaction({
to: userKeys.publicKey,
amount: 50,
fee: 0,
transaction_number: 1,
transaction_number: 1
});
trx.signature = trx.sign( minerKeys.privateKey );
console.log( JSON.stringify( trx.data ) );
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
// "module": "commonjs",
// "module": "ESNext",
// "moduleResolution": "node",
"rootDir": "./src",
"outDir": "./dist",
"esModuleInterop": true,
Expand Down

0 comments on commit 3f9bb69

Please sign in to comment.