Skip to content

Commit

Permalink
Merge pull request #23 from Xander1233/develop
Browse files Browse the repository at this point in the history
feat: fix build problems
  • Loading branch information
Xander1233 authored Apr 20, 2023
2 parents c31fd74 + 01f443e commit 6a83623
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/oncommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,23 @@ jobs:
run: npm ci
- name: Lint
run: npm run lint

dry-build:
name: Dry build
runs-on: self-hosted
needs: [ lint, tests ]
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Clean installation of project
run: npm ci
- name: Build
run: npm run build
22 changes: 20 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: self-hosted

strategy:
fail-fast: true
matrix:
node-version: [14.x, 16.x, 18.x]

Expand All @@ -37,9 +36,28 @@ jobs:
- name: Lint
run: npm run lint

dry-build:
name: Dry build
runs-on: self-hosted
needs: [ lint, tests ]
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Clean installation of project
run: npm ci
- name: Build
run: npm run build

build:
name: Build
needs: [tests, lint]
needs: [tests, lint, dry-build]
runs-on: self-hosted
steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,6 @@ dist
.yarn/install-state.gz
.pnp.*

docs/
docs/

lib/
3 changes: 2 additions & 1 deletion config/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"allowJs": true,
"allowSyntheticDefaultImports": true
},
"exclude": [ "../tests", "../lib" ]
"exclude": [ "../tests", "../lib" ],
"include": [ "../src" ]
}
2 changes: 1 addition & 1 deletion config/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": [ "ES2022", "DOM" ],
"target": "ES2023",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "nodenext",
"outDir": "../lib/esm",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"declaration": true
},
"include": ["src", "tests", ".eslintrc.js"],
"exclude": ["out"]
"exclude": ["lib"]
}

0 comments on commit 6a83623

Please sign in to comment.