Skip to content

Commit caf7953

Browse files
authoredFeb 12, 2024··
Merge pull request #25 from Stremio/support-commonjs
2 parents 0e0c214 + 4561742 commit caf7953

6 files changed

+1602
-295
lines changed
 

‎package.json

+20-6
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,31 @@
1212
"engines": {
1313
"node": ">=18"
1414
},
15-
"main": "dist/index.js",
15+
"main": "./dist/index.cjs",
16+
"module": "./dist/index.js",
17+
"types": "./dist/index.d.ts",
18+
"files": [
19+
"dist"
20+
],
1621
"scripts": {
1722
"test": "vitest",
18-
"build": "tsc -p .",
23+
"build": "tsup",
1924
"coverage": "vitest --coverage",
20-
"prepublish": "build"
25+
"prepublish": "npm run build"
2126
},
2227
"license": "MIT",
2328
"devDependencies": {
24-
"typescript": "4.9.4",
25-
"vitest": "0.25.8",
26-
"vite": "4.0.1"
29+
"@types/node": "^20.11.17",
30+
"@vitest/coverage-v8": "^1.2.2",
31+
"tsup": "^8.0.2",
32+
"typescript": "5.3.3",
33+
"vitest": "1.2.2"
34+
},
35+
"exports": {
36+
"import": {
37+
"types": "./dist/index.d.ts",
38+
"default": "./dist/index.js"
39+
},
40+
"require": "./dist/index.cjs"
2741
}
2842
}

0 commit comments

Comments
 (0)
Please sign in to comment.