Refactoring base files
This commit is contained in:
8169
frontend/package-lock.json
generated
8169
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -34,6 +34,9 @@
|
||||
"@itprom/user": "^1.0.0",
|
||||
"@itprom/user-profile": "^1.0.0",
|
||||
"@itprom/help": "^1.0.0",
|
||||
"@itprom/profession": "^1.0.0",
|
||||
"@itprom/shift-seq": "^1.0.0",
|
||||
"@itprom/shift": "^1.0.0",
|
||||
"@noble/ciphers": "^2.1.1",
|
||||
"@stomp/stompjs": "^7.2.1",
|
||||
"@vueup/vue-quill": "^1.2.0",
|
||||
@@ -73,4 +76,4 @@
|
||||
"vite-plugin-checker": "^0.12.0",
|
||||
"vue-tsc": "^3.1.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,12 @@ const pkg = `
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.es.js",
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
"./*": {
|
||||
"types": "./dist/*.d.ts",
|
||||
"import": "./dist/*.js",
|
||||
"require": "./dist/*.cjs.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
"department",
|
||||
"shift",
|
||||
"person",
|
||||
"shift-seq",
|
||||
"help"
|
||||
"help",
|
||||
"shiftSeq"
|
||||
]
|
||||
@@ -17,9 +17,9 @@ const modules: Record<string, () => Promise<any>> = {
|
||||
role: () => import('@itprom/role'),
|
||||
help: () => import('@itprom/help'),
|
||||
message: () => import('@itprom/message'),
|
||||
// shift: () => import('@itprom/shift'),
|
||||
// shiftSeq: () => import('@itprom/shift-seq'),
|
||||
// profession: () => import('@itprom/profession'),
|
||||
shift: () => import('@itprom/shift'),
|
||||
shiftSeq: () => import('@itprom/shift-seq'),
|
||||
profession: () => import('@itprom/profession'),
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@itprom/*": ["./src/modules/*/src/index.ts"]
|
||||
"@itprom/*": [
|
||||
"./node_modules/@itprom/*",
|
||||
"./src/modules/*/src/index.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,17 @@
|
||||
"composite": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"],
|
||||
"@itprom/*": ["./src/modules/*/src/index.ts"]
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"@itprom/*": [
|
||||
"./node_modules/@itprom/*",
|
||||
"./src/modules/*/src/index.ts"
|
||||
]
|
||||
},
|
||||
"types": ["vite/client"],
|
||||
"types": [
|
||||
"vite/client"
|
||||
],
|
||||
"strict": false,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
@@ -24,6 +31,13 @@
|
||||
"isolatedModules": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
||||
"exclude": ["src/**/__tests__/*", "src/modules/**/dist"]
|
||||
"include": [
|
||||
"env.d.ts",
|
||||
"src/**/*",
|
||||
"src/**/*.vue"
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/__tests__/*",
|
||||
"src/modules/**/dist"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -66,7 +66,6 @@ function getModuleAliases() {
|
||||
if (fs.existsSync(modulesDir)) {
|
||||
const folders = fs.readdirSync(modulesDir);
|
||||
folders.forEach((folder) => {
|
||||
// Проверяем, что это папка и внутри есть src/index.ts
|
||||
const moduleSrcPath = path.join(modulesDir, folder, 'src', 'index.ts');
|
||||
if (fs.existsSync(moduleSrcPath)) {
|
||||
aliases[`@itprom/${folder}`] = moduleSrcPath;
|
||||
|
||||
Reference in New Issue
Block a user