Skip to content

Commit

Permalink
Merge pull request #25 from Stremio/support-commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
1313 authored Feb 12, 2024
2 parents 0e0c214 + 4561742 commit caf7953
Show file tree
Hide file tree
Showing 6 changed files with 1,602 additions and 295 deletions.
26 changes: 20 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,31 @@
"engines": {
"node": ">=18"
},
"main": "dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "vitest",
"build": "tsc -p .",
"build": "tsup",
"coverage": "vitest --coverage",
"prepublish": "build"
"prepublish": "npm run build"
},
"license": "MIT",
"devDependencies": {
"typescript": "4.9.4",
"vitest": "0.25.8",
"vite": "4.0.1"
"@types/node": "^20.11.17",
"@vitest/coverage-v8": "^1.2.2",
"tsup": "^8.0.2",
"typescript": "5.3.3",
"vitest": "1.2.2"
},
"exports": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": "./dist/index.cjs"
}
}
Loading

0 comments on commit caf7953

Please sign in to comment.