@toptal/davinci-engine 11.0.9 → 11.0.10
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 11.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2382](https://github.com/toptal/davinci/pull/2382) [`2f8dfd42`](https://github.com/toptal/davinci/commit/2f8dfd42195069c69d3d4f64b1ef01792c0b9f2e) Thanks [@dmaklygin](https://github.com/dmaklygin)!
|
|
8
|
+
- fix ForkTsCheckerWebpackPlugin for monorepos
|
|
9
|
+
|
|
3
10
|
## 11.0.9
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -5,11 +5,41 @@ import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
|
|
|
5
5
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
|
|
6
6
|
import WorkboxPlugin from 'workbox-webpack-plugin'
|
|
7
7
|
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin'
|
|
8
|
+
import path from 'path'
|
|
8
9
|
|
|
10
|
+
import workspace from '../../../utils/workspace.js'
|
|
9
11
|
import WebpackBar from './webpackbar.js'
|
|
10
12
|
import { paths } from '../../paths.js'
|
|
11
13
|
import { PWA_DEFAULT_SERVICE_WORKER_NAME } from '../../../constants.cjs'
|
|
12
14
|
|
|
15
|
+
const getExcludedFolders = () => {
|
|
16
|
+
const workspaceRoot = workspace.getWorkspaceRoot()
|
|
17
|
+
|
|
18
|
+
return [
|
|
19
|
+
'**/node_modules',
|
|
20
|
+
'node_modules',
|
|
21
|
+
'__tests__',
|
|
22
|
+
'**/__tests__/**/*',
|
|
23
|
+
'**/story/**',
|
|
24
|
+
'**/test.*',
|
|
25
|
+
'**/*.test.*',
|
|
26
|
+
'**/mocks.*',
|
|
27
|
+
'**/*.mocks.*',
|
|
28
|
+
'**/spec.*',
|
|
29
|
+
'**/*.spec.*',
|
|
30
|
+
'**/*.pact.*',
|
|
31
|
+
'**/*.stories.*',
|
|
32
|
+
'**/src/setupProxy.*',
|
|
33
|
+
'**/src/setupTests.*',
|
|
34
|
+
'**/dist',
|
|
35
|
+
'dist',
|
|
36
|
+
].map(relativePath => {
|
|
37
|
+
return workspaceRoot !== null
|
|
38
|
+
? path.resolve(workspaceRoot, relativePath)
|
|
39
|
+
: relativePath
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
13
43
|
const plugins = ({
|
|
14
44
|
isEnvProduction,
|
|
15
45
|
isEnvDevelopment,
|
|
@@ -58,22 +88,7 @@ const plugins = ({
|
|
|
58
88
|
syntactic: true,
|
|
59
89
|
},
|
|
60
90
|
configOverwrite: {
|
|
61
|
-
exclude:
|
|
62
|
-
'node_modules',
|
|
63
|
-
'__tests__',
|
|
64
|
-
'**/__tests__/**/*',
|
|
65
|
-
'**/story/**',
|
|
66
|
-
'**/test.*',
|
|
67
|
-
'**/*.test.*',
|
|
68
|
-
'**/mocks.*',
|
|
69
|
-
'**/*.mocks.*',
|
|
70
|
-
'**/spec.*',
|
|
71
|
-
'**/*.spec.*',
|
|
72
|
-
'**/*.pact.*',
|
|
73
|
-
'**/*.stories.*',
|
|
74
|
-
'**/src/setupProxy.*',
|
|
75
|
-
'**/src/setupTests.*',
|
|
76
|
-
],
|
|
91
|
+
exclude: getExcludedFolders(),
|
|
77
92
|
},
|
|
78
93
|
logger: {
|
|
79
94
|
infrastructure: 'silent',
|