diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1bd38b..8b18619 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: 'yarn' - run: | yarn -v diff --git a/config/tsconfig.base.json b/config/tsconfig.base.json index 673ec01..7a7a1e9 100644 --- a/config/tsconfig.base.json +++ b/config/tsconfig.base.json @@ -3,7 +3,7 @@ "lib": ["es2018", "dom"], "module": "commonjs", "moduleResolution": "node", - "target": "es5", + "target": "es6", "strict": true, "allowSyntheticDefaultImports": true, "experimentalDecorators": true, diff --git a/package.json b/package.json index 43d1459..ad9ebd7 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "clean": "npm-run-all -s clean:*", "clean:test-artifacts": "rimraf coverage", "clean:build": "rimraf dist", - "clean_node_modules": "rimraf node_modules" + "clean_node_modules": "rimraf node_modules", + "prepare": "husky install" }, "devDependencies": { "@ikscodes/eslint-config": "^8.4.1", @@ -59,11 +60,6 @@ "ethers": "^6.11.1", "node-fetch": "^2.6.7" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "lint-staged": { "*.{ts,tsx}": "eslint --fix" },