目录结构修改

This commit is contained in:
Yuan 2023-12-19 16:30:41 +08:00
parent 99cc3410dc
commit b0361df600
9 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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`));

View File

@ -9,6 +9,6 @@
"isolatedModules": true,
"lib": ["ESNext", "DOM"]
},
"include": ["packages/**/*.ts"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}