Skip to content

Commit

Permalink
fix: remove esm formats as it breaks the plugin on resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Jun 30, 2023
1 parent 515bd0f commit 17aed11
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 359 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [imranbarbhuiya]
github: imranbarbhuiya
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v{{ matrix.node }
- name: Use Node.js v{{ matrix.node }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deprecate-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Dependencies
run: yarn --immutable
- name: Deprecate versions
run: true || yarn npm-deprecate --name "*pr-${PR_NUMBER}*" -d -v
run: yarn npm-deprecate --name "*pr-${PR_NUMBER}*" -d -v
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
"@favware/cliff-jumper": "^2.1.1",
"@favware/npm-deprecate": "^1.0.7",
"cz-conventional-changelog": "^3.3.0",
"esbuild": "^0.18.8",
"esbuild": "^0.18.10",
"eslint": "^8.43.0",
"eslint-config-mahir": "^0.0.27",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"lint-staged": "^13.2.3",
"pinst": "^3.0.0",
"prettier": "^2.8.8",
"tsup": "^7.1.0",
"typescript": "^5.1.3",
"typescript": "^5.1.6",
"vitest": "^0.32.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { defineConfig } from 'tsup';
export default defineConfig({
clean: true,
dts: true,
shims: true,
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
format: ['cjs'],
minify: false,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
keepNames: true,
tsconfig: 'src/tsconfig.json',
treeshake: true,
});
Loading

0 comments on commit 17aed11

Please sign in to comment.