mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-07 04:19:39 +00:00
fix(server): update build paths
This commit is contained in:
@@ -8,6 +8,8 @@ const __dirname = path.dirname(__filename);
|
||||
const packagePath = path.resolve(__dirname, "../package.json");
|
||||
const pkg = JSON.parse(fs.readFileSync(packagePath, "utf-8"));
|
||||
|
||||
pkg.main = "./dist/index.js";
|
||||
|
||||
pkg.exports = {
|
||||
".": {
|
||||
import: "./dist/index.js",
|
||||
@@ -21,6 +23,18 @@ pkg.exports = {
|
||||
import: "./dist/*",
|
||||
require: "./dist/*.cjs",
|
||||
},
|
||||
"./dist": {
|
||||
import: "./dist/index.js",
|
||||
require: "./dist/index.cjs.js",
|
||||
},
|
||||
"./dist/db": {
|
||||
import: "./dist/db/index.js",
|
||||
require: "./dist/db/index.cjs.js",
|
||||
},
|
||||
"./dist/db/schema": {
|
||||
import: "./dist/db/schema/index.js",
|
||||
require: "./dist/db/schema/index.cjs.js",
|
||||
},
|
||||
};
|
||||
|
||||
fs.writeFileSync(packagePath, JSON.stringify(pkg, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user