Skip to content

Commit

Permalink
fix: only emit esm build (#212)
Browse files Browse the repository at this point in the history
* fix: moved to esm modules for vite 5

Fixes #209.

* build: updated to node v20.12.2

* build: switched to pnpm v9

* chore(deps): update dependencies
  • Loading branch information
iFaxity committed May 4, 2024
1 parent 5004c58 commit 895c7bb
Show file tree
Hide file tree
Showing 9 changed files with 5,996 additions and 12,179 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version-file: '.node-version'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm run build
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
node-version-file: '.node-version'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm run build

- name: Release
run: npx semantic-release
run: pnpm dlx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx commitlint --edit ${1}
pnpm dlx commitlint --edit ${1}
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Run Formatting and linting
npx lint-staged
pnpm dlx lint-staged
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.0
v20.12.2
1 change: 0 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default defineBuildConfig({
clean: true,
declaration: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
},
});

0 comments on commit 895c7bb

Please sign in to comment.