diff --git a/package-lock.json b/package-lock.json index ca7b35c..d3789b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -320,19 +320,9 @@ } }, "@xgm/error-codes": { - "version": "0.0.1", - "dependencies": { - "@types/node": { - "version": "14.14.20", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz", - "integrity": "sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A==" - }, - "typescript": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz", - "integrity": "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==" - } - } + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@xgm/error-codes/-/error-codes-0.0.3.tgz", + "integrity": "sha512-ZfEJ9PbxISGmlZHPTTxidaSAd+gy1ZszA6cMQc5Oc37PvY6EqlI1Oy1YfG1sL5g7z0pm8piMR2pj0TZYqF0+Yw==" }, "ansi-align": { "version": "3.0.0", @@ -790,6 +780,30 @@ "is-obj": "^2.0.0" } }, + "dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", + "dev": true + }, + "dotenv-cli": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-4.0.0.tgz", + "integrity": "sha512-ByKEec+ashePEXthZaA1fif9XDtcaRnkN7eGdBDx3HHRjwZ/rA1go83Cbs4yRrx3JshsCf96FjAyIA2M672+CQ==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1", + "dotenv": "^8.1.0", + "dotenv-expand": "^5.1.0", + "minimist": "^1.1.3" + } + }, + "dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", diff --git a/package.json b/package.json index 4f4acd0..267cfa7 100644 --- a/package.json +++ b/package.json @@ -8,26 +8,29 @@ }, "engineStrict": true, "files": [ + "/build/protocols.txt", "/dist", "/LICENSE", "/README.md" ], "scripts": { "compile": "npm run dist && node dist/scripts/compile.js", - "dist": "node_modules/typescript/bin/tsc", - "test": "echo \"Error: no test specified\" && exit 1", "clean": "rm -R node_modules", - "clean:build": "rm -R build/protocols" + "clean:build": "rm -R build/protocols", + "dist": "node_modules/typescript/bin/tsc", + "release": "dotenv release-it -- --only-version --verbose", + "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/xGodMode/contract-library.git" }, "keywords": [ + "xgm", "godmode", "ethereum", "solidity", - "contract" + "smart-contracts" ], "author": "valmack", "license": "MIT", @@ -36,7 +39,7 @@ }, "homepage": "https://github.com/xGodMode/contract-library#readme", "dependencies": { - "@xgm/error-codes": "0.0.1", + "@xgm/error-codes": "^0.0.3", "glob": "^7.1.6", "memorystream": "^0.3.1", "require-from-string": "^2.0.2", @@ -44,6 +47,7 @@ }, "devDependencies": { "@types/node": "^14.14.19", + "dotenv-cli": "^4.0.0", "husky": "^4.3.6", "prettier": "^2.2.1", "pretty-quick": "^3.1.0", @@ -56,11 +60,20 @@ } }, "release-it": { + "hooks": { + "before:init": [ + "npm install", + "npm run compile" + ] + }, "git": { "commitMessage": "release: v${version}" }, "github": { "release": true } + }, + "publishConfig": { + "access": "public" } }