Refactoring base files

This commit is contained in:
Sergei_Verbitski
2026-03-23 18:47:49 +03:00
parent 8575fd6db8
commit 76bea61d91
12 changed files with 114 additions and 8194 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -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"
}
}
}
`;

View File

@@ -17,6 +17,6 @@
"department",
"shift",
"person",
"shift-seq",
"help"
"help",
"shiftSeq"
]

View File

@@ -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'),
};
/**

View File

@@ -3,7 +3,10 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@itprom/*": ["./src/modules/*/src/index.ts"]
"@itprom/*": [
"./node_modules/@itprom/*",
"./src/modules/*/src/index.ts"
]
}
}
}

View File

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

View File

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