diff --git a/.github/workflows/oncommit.yml b/.github/workflows/oncommit.yml index 1bf96ec..cefd093 100644 --- a/.github/workflows/oncommit.yml +++ b/.github/workflows/oncommit.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2bc8e78..4202f58 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,6 @@ jobs: runs-on: self-hosted strategy: - fail-fast: true matrix: node-version: [14.x, 16.x, 18.x] @@ -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 diff --git a/.gitignore b/.gitignore index bd14a1c..df3272a 100644 --- a/.gitignore +++ b/.gitignore @@ -126,4 +126,6 @@ dist .yarn/install-state.gz .pnp.* -docs/ \ No newline at end of file +docs/ + +lib/ \ No newline at end of file diff --git a/config/tsconfig.base.json b/config/tsconfig.base.json index c85458a..3e8be05 100644 --- a/config/tsconfig.base.json +++ b/config/tsconfig.base.json @@ -13,5 +13,6 @@ "allowJs": true, "allowSyntheticDefaultImports": true }, - "exclude": [ "../tests", "../lib" ] + "exclude": [ "../tests", "../lib" ], + "include": [ "../src" ] } \ No newline at end of file diff --git a/config/tsconfig.esm.json b/config/tsconfig.esm.json index 77fda89..deedf6a 100644 --- a/config/tsconfig.esm.json +++ b/config/tsconfig.esm.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "lib": [ "ES2022", "DOM" ], - "target": "ES2023", + "target": "ES2022", "module": "ESNext", "moduleResolution": "nodenext", "outDir": "../lib/esm", diff --git a/tsconfig-eslint.json b/tsconfig-eslint.json index 7e31e35..72aae15 100644 --- a/tsconfig-eslint.json +++ b/tsconfig-eslint.json @@ -11,5 +11,5 @@ "declaration": true }, "include": ["src", "tests", ".eslintrc.js"], - "exclude": ["out"] + "exclude": ["lib"] } \ No newline at end of file