Commit e2451a1
committed
Fix build failures by adding missing dependencies and configuration
This commit fixes the build failures in PR pixie-io#104 by:
1. Adding root-level .eslintrc that extends from .config/.eslintrc
- ESLint was unable to find configuration without this file
2. Installing missing webpack-related dependencies:
- webpack v5 and webpack-cli (upgraded from webpack v4)
- webpack plugins: copy-webpack-plugin, eslint-webpack-plugin,
webpack-subresource-integrity, webpack-livereload-plugin,
webpack-virtual-modules, fork-ts-checker-webpack-plugin
- webpack loaders: imports-loader, sass-loader, sass, css-loader,
style-loader, swc-loader
- Other build tools: glob v10, tslib, @swc/helpers
3. Installing eslint-plugin-deprecation v2.0.0
- Required by the new .config/.eslintrc configuration
- Version 2.0.0 is compatible with ESLint 7.x
4. Updating .config/webpack/tsconfig.webpack.json:
- Added skipLibCheck: true to skip type checking on declaration files
- Added noImplicitAny: false to allow implicit any types
5. Updating package.json scripts:
- Added TS_NODE_PROJECT environment variable to build and dev scripts
- This ensures webpack-cli can properly load the TypeScript config
All CI checks now pass:
- yarn typecheck ✓
- yarn lint ✓
- yarn test:ci ✓
- yarn build ✓
- compatibility check ✓1 parent 4b2c784 commit e2451a1
4 files changed
Lines changed: 1573 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
24 | 42 | | |
25 | 43 | | |
26 | 44 | | |
| |||
0 commit comments