create-packer 1.24.2 → 1.24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.24.2",
3
+ "version": "1.24.4",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,4 +1,3 @@
1
- import path from 'path'
2
1
  import { defineConfig } from 'vite'
3
2
  import react from '@vitejs/plugin-react'
4
3
  import checker from 'vite-plugin-checker'
@@ -13,13 +12,13 @@ export default defineConfig(({ mode }) => {
13
12
  typescript: true,
14
13
  eslint: {
15
14
  // for example, lint .ts and .tsx
16
- lintCommand: 'eslint ./src/**/*.{ts,tsx,js,jsx}',
15
+ lintCommand: 'eslint **/*.{ts,tsx,js,jsx}',
17
16
  dev: {
18
17
  logLevel: ['error']
19
18
  }
20
19
  },
21
20
  stylelint: {
22
- lintCommand: 'stylelint ./src/**/*.{css,scss,less}',
21
+ lintCommand: 'stylelint **/*.{css,scss,less}',
23
22
  dev: {
24
23
  logLevel: ['error']
25
24
  }
@@ -30,7 +29,7 @@ export default defineConfig(({ mode }) => {
30
29
  ],
31
30
  resolve: {
32
31
  alias: {
33
- '@': path.join(__dirname, 'src')
32
+ '@': __dirname
34
33
  }
35
34
  },
36
35
  esbuild: {