Skip to content

Commit

Permalink
chore: only support ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
yyz945947732 committed Sep 27, 2023
1 parent b5e7fed commit f65e92d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "1.0.0",
"description": "Tabletomd attempts to convert local or remote HTML tables into Markdown Table with a very low footprint.",
"homepage": "https://github.com/yyz945947732/tabletomd",
"main": "dist/index.cjs",
"module": "dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"example": "node example/index",
Expand All @@ -13,9 +12,6 @@
"build": "tsup --config tsup.config.ts",
"test:cov": "vitest run --coverage"
},
"engines": {
"node": ">= 18.0.0"
},
"type": "module",
"author": "yyz945947732 <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
format: "esm",
treeshake: true,
clean: true,
minify: true,
Expand Down

0 comments on commit f65e92d

Please sign in to comment.