feat: change to use commonjs output

This commit is contained in:
Lin, Hung-Shin authored and wancat committed 2024-01-29 12:42:50 +08:00
1 parent 2bdb804f24
commit 557af91d4b
24 files changed
+35 -18

No files matched your search

+7 -3
View File
@@ -1,10 +1,14 @@
{
"name": "@linux-odyssey/models",
"type": "module",
"type": "commonjs",
"version": "1.0.0",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "GPL",
"exports": "./index.js",
"exports": "./dist/index.js",
"scripts": {
"build": "tsc"
},
"dependencies": {
"mongoose": "^8.0.3"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+15
View File
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "ES5",
"module": "CommonJS",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true,
"outDir": "./dist",
"declaration": true,
"sourceMap": true,
"allowJs": true
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}