@addev-be/framework-utils 2.7.7 → 3.0.6

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.
@@ -20,6 +20,10 @@ export const eslintLibConfig = defineConfig([
20
20
  ...globals.node,
21
21
  ...globals.es2021,
22
22
  },
23
+ parserOptions: {
24
+ projectService: true,
25
+ tsconfigRootDir: import.meta.dirname,
26
+ },
23
27
  },
24
28
  },
25
29
  ...tseslint.configs.recommended,
@@ -19,10 +19,17 @@ export const createEslintReactConfig = (options = defaultOptions) =>
19
19
  files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
20
20
  plugins: { js },
21
21
  extends: ['js/recommended'],
22
+ ignores: ['dist', 'eslint.config.js'],
22
23
  },
23
24
  {
24
25
  files: ['**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
25
- languageOptions: { globals: globals.browser },
26
+ languageOptions: {
27
+ globals: globals.browser,
28
+ parserOptions: {
29
+ projectService: true,
30
+ tsconfigRootDir: import.meta.dirname,
31
+ },
32
+ },
26
33
  },
27
34
  tseslint.configs.recommended,
28
35
  pluginReact.configs.flat.recommended,
@@ -1,11 +1,12 @@
1
1
  import { execSync } from 'child_process';
2
+ import { join } from 'path';
2
3
 
3
4
  const runUIBuildCheck = () => {
4
5
  console.log('📦 Building UI package...');
5
6
  try {
6
- execSync('yarn workspace @addev-be/ui build', {
7
+ execSync('bun run build', {
7
8
  stdio: 'inherit',
8
- cwd: process.cwd(),
9
+ cwd: join(process.cwd(), 'packages', 'ui'),
9
10
  });
10
11
  console.log('✅ UI build successful!');
11
12
  return true;
@@ -33,9 +34,9 @@ const runBackendBuildCheck = () => {
33
34
  const runLintCheck = () => {
34
35
  console.log('🔍 Running UI linting...');
35
36
  try {
36
- execSync('yarn workspace @addev-be/ui lint', {
37
+ execSync('bun run lint', {
37
38
  stdio: 'inherit',
38
- cwd: process.cwd(),
39
+ cwd: join(process.cwd(), 'packages', 'ui'),
39
40
  });
40
41
  console.log('✅ UI linting passed!');
41
42
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@addev-be/framework-utils",
3
- "version": "2.7.7",
3
+ "version": "3.0.6",
4
4
  "type": "module",
5
5
  "export": {
6
6
  "node": {
@@ -14,7 +14,7 @@
14
14
  "update-version": "./bin/update-version.mjs"
15
15
  },
16
16
  "scripts": {
17
- "publish": "yarn npm publish"
17
+ "publish:npm": "bun publish"
18
18
  },
19
19
  "dependencies": {
20
20
  "@eslint/js": "^9.36.0",
@@ -34,4 +34,4 @@
34
34
  "devDependencies": {
35
35
  "@types/uuid": "^11.0.0"
36
36
  }
37
- }
37
+ }