bmdl-sdk 1.5.0 → 1.5.1

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/bin/dev.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { spawn } from 'child_process'
4
- import { resolve } from 'path'
4
+ import { existsSync } from 'fs'
5
+ import { dirname, resolve } from 'path'
5
6
  import { fileURLToPath } from 'url'
6
- import { dirname, existsSync, readFileSync } from 'fs'
7
7
 
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url))
9
9
  const projectRoot = process.cwd()
@@ -16,7 +16,7 @@ const requiredFiles = [
16
16
  'src/app/App.tsx',
17
17
  'src/config.ts',
18
18
  'src/dataOptions.ts',
19
- 'src/viewOptions.ts'
19
+ 'src/viewOptions.ts',
20
20
  ]
21
21
 
22
22
  let hasErrors = false
@@ -49,11 +49,11 @@ const vite = spawn('npx', ['vite', '--port', '3000', '--config', viteConfig], {
49
49
  cwd: sdkRoot,
50
50
  env: {
51
51
  ...process.env,
52
- PROJECT_ROOT: projectRoot
53
- }
52
+ PROJECT_ROOT: projectRoot,
53
+ },
54
54
  })
55
55
 
56
- vite.on('close', (code) => {
56
+ vite.on('close', code => {
57
57
  if (code !== 0) {
58
58
  console.log(`❌ Vite process exited with code ${code}`)
59
59
  }
@@ -62,4 +62,4 @@ vite.on('close', (code) => {
62
62
 
63
63
  console.log('')
64
64
  console.log('✅ Development server running on http://localhost:3000')
65
- console.log('🔄 Hot reload enabled for all source files')
65
+ console.log('🔄 Hot reload enabled for all source files')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmdl-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "bin": {
package/vite.config.ts CHANGED
@@ -1,23 +1,19 @@
1
- import { defineConfig } from 'vite'
2
1
  import react from '@vitejs/plugin-react'
2
+ import { defineConfig } from 'vite'
3
3
 
4
4
  export default defineConfig({
5
5
  plugins: [react()],
6
6
  server: {
7
7
  port: 3000,
8
8
  open: true,
9
- watch: {
10
- // Следим за изменениями в проекте разработчика
11
- ignored: ['!**/node_modules/**']
12
- }
13
- },
14
- optimizeDeps: {
15
- include: ['react', 'react-dom']
16
9
  },
10
+ root: process.cwd(),
17
11
  resolve: {
18
12
  alias: {
19
- // Позволяем импортировать из проекта разработчика
20
- '@': '/'
21
- }
22
- }
23
- })
13
+ '@': process.cwd(),
14
+ },
15
+ },
16
+ optimizeDeps: {
17
+ include: ['react', 'react-dom'],
18
+ },
19
+ })