diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e417e24..7feaadc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy on: push: branches: - - release + - main jobs: deploy: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..190a4cd --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,27 @@ +name: Pull request checks +on: + pull_request: + types: + - opened + - reopened + branches: + - main + +jobs: + pull_request: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: true + + - name: TypeScript Compiler + run: tsc --noEmit + + - name: Lint + run: pnpx eslint . diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..8ccff6f --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,2 @@ +pnpx eslint . +tsc --noEmit diff --git a/README.md b/README.md index eaded57..6c7b3ec 100644 --- a/README.md +++ b/README.md @@ -1,84 +1,128 @@ -# esbuild plugin typescript +
The plugin enhances the build process by seamlessly integrating TypeScript, offering powerful features like type checking, automatic generation of .d.ts files, and ensuring robust type safety throughout.
-## How It Works + + + + -1. esbuild calls this package in the onStart lifecycle. -2. Gets the configuration from esbuild or user-defined configuration. -3. Evaluate the out folder, that should be deleted, based on the given input. -4. Runs the official TypeScript-Compiler by its API and\ -generates output based on the given tsconfig. +