目录结构修改
This commit is contained in:
parent
99cc3410dc
commit
b0361df600
|
@ -12,7 +12,7 @@
|
|||
"author": "",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"build": "rollup -c rollup.config.js"
|
||||
"build": "rollup -c rollup.config.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"jl-graphic": "git+https://git.code.tencent.com/jl-framework/graphic-pixi.git#v0.1.0"
|
||||
|
|
|
@ -9,7 +9,7 @@ const config = {
|
|||
external: ["jl-graphic"],
|
||||
input: getEntryPoints(),
|
||||
output: {
|
||||
dir: "dist",
|
||||
dir: "components",
|
||||
format: "esm",
|
||||
preserveModules: true,
|
||||
},
|
||||
|
@ -19,7 +19,7 @@ const config = {
|
|||
|
||||
compilerOptions: {
|
||||
declaration: true,
|
||||
declarationDir: "dist",
|
||||
declarationDir: "components",
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
@ -27,7 +27,7 @@ const config = {
|
|||
module.exports = config;
|
||||
|
||||
function getEntryPoints() {
|
||||
const packageDir = resolve(__dirname, "packages");
|
||||
const packageDir = resolve(__dirname, "src/packages");
|
||||
const entryPoints = readdirSync(packageDir, { withFileTypes: true })
|
||||
.filter((dirent) => dirent.isDirectory())
|
||||
.map((dirent) => resolve(packageDir, dirent.name, `${dirent.name}.ts`));
|
|
@ -9,6 +9,6 @@
|
|||
"isolatedModules": true,
|
||||
"lib": ["ESNext", "DOM"]
|
||||
},
|
||||
"include": ["packages/**/*.ts"],
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue