Ensure yarn build exists for mono yarn workspaces (#22)

* Ensure yarn build exists for mono yarn workspaces

* Use publish compatible tsconfig

* Ignore test in eslint
pull/2435/head
Yorke Rhodes 2 years ago committed by GitHub
parent 5afcc623c3
commit 5f7015cf3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .eslintignore
  2. 4
      .github/workflows/ci.yml
  3. 3
      package.json
  4. 24
      tsconfig.base.json
  5. 32
      tsconfig.json
  6. 15
      tsconfig.publish.json

@ -3,4 +3,5 @@ dist
coverage
types
hardhat.config.ts
scripts
scripts
test

@ -50,8 +50,8 @@ jobs:
path: ./*
key: ${{ github.sha }}
- name: build:dev
run: yarn run build:dev
- name: build
run: yarn run build
prettier:
runs-on: ubuntu-latest

@ -52,8 +52,7 @@
},
"scripts": {
"clean": "hardhat clean && rm -rf dist cache src/types",
"build:dev": "hardhat compile && tsc --project ./tsconfig.json",
"build:publish": "hardhat compile && tsc --project ./tsconfig.publish.json",
"build": "hardhat compile && tsc",
"coverage": "hardhat coverage",
"lint": "eslint . --ext .ts",
"prettier": "prettier --write ./contracts ./test",

@ -1,24 +0,0 @@
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": false,
"lib": ["es2015", "es5", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noUnusedLocals": true,
"preserveSymlinks": true,
"preserveWatchOutput": true,
"pretty": false,
"sourceMap": true,
"target": "es6",
"strict": true,
"resolveJsonModule": true
}
}

@ -1,16 +1,34 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": false,
"lib": ["es2015", "es5", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noUnusedLocals": true,
"preserveSymlinks": true,
"preserveWatchOutput": true,
"pretty": false,
"sourceMap": true,
"target": "es6",
"strict": true,
"resolveJsonModule": true,
"outDir": "./dist",
"rootDir": "./",
"rootDir": "./src",
},
"exclude": [
"./node_modules/",
"./scripts/",
"./test/",
"./dist/",
"./src/types/hardhat.d.ts",
"hardhat.config.ts"
],
"include": [
"./src",
"./test",
],
"files": ["hardhat.config.ts"]
}

@ -1,15 +0,0 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
},
"exclude": [
"./node_modules/",
"./scripts/",
"./test/",
"./dist/",
"./src/types/hardhat.d.ts",
"hardhat.config.ts"
],
}
Loading…
Cancel
Save