mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
- Updates to ESLint v10 and fixes lint failures. - Aligns tsconfig on Node 20, which is the current minimum required Node version. - Adds package-lock.json files to source control to avoid future random failures when dependencies update. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
35 lines
920 B
JSON
35 lines
920 B
JSON
{
|
|
"name": "asset-transfer-sbe",
|
|
"version": "0.0.1",
|
|
"description": "Asset Transfer contract, using State Based Endorsement(SBE), implemented in TypeScript",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint src",
|
|
"pretest": "npm run lint",
|
|
"test": "echo 'No tests implemented'",
|
|
"start": "fabric-chaincode-node start",
|
|
"build": "tsc",
|
|
"build:watch": "tsc -w",
|
|
"prepublishOnly": "npm run build",
|
|
"postinstall": "npm dedupe"
|
|
},
|
|
"engineStrict": true,
|
|
"author": "Hyperledger",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"fabric-contract-api": "~2.5",
|
|
"fabric-shim": "~2.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@tsconfig/node20": "^20.1.9",
|
|
"@types/node": "^20.19.33",
|
|
"eslint": "^10.0.2",
|
|
"typescript": "~5.8",
|
|
"typescript-eslint": "^8.56.1"
|
|
}
|
|
}
|