@synergyerp/frontend-standards 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CICD_STANDARDS.md +355 -341
- package/FRONTEND_STANDARDS.md +496 -384
- package/package.json +1 -1
- package/scripts/check-modularization.mjs +2 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synergyerp/frontend-standards",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "SynergyERP frontend standards — ESLint, Prettier, commitlint, Husky, Vitest, TypeScript configs, modularization enforcement, and PR templates.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -12,18 +12,9 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { existsSync, readdirSync, statSync } from 'fs';
|
|
15
|
-
import {
|
|
16
|
-
import { fileURLToPath } from 'url';
|
|
15
|
+
import { join } from 'path';
|
|
17
16
|
|
|
18
|
-
const
|
|
19
|
-
const __dirname = dirname(__filename);
|
|
20
|
-
|
|
21
|
-
// Resolve project root: 2 levels up from scripts/ when installed as node_modules
|
|
22
|
-
let PROJECT_ROOT = join(__dirname, '..', '..', '..');
|
|
23
|
-
// If running from the standards package itself, go up 1 level
|
|
24
|
-
if (!existsSync(join(PROJECT_ROOT, 'src'))) {
|
|
25
|
-
PROJECT_ROOT = join(__dirname, '..');
|
|
26
|
-
}
|
|
17
|
+
const PROJECT_ROOT = process.cwd();
|
|
27
18
|
|
|
28
19
|
const SRC = join(PROJECT_ROOT, 'src');
|
|
29
20
|
|