File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 57
57
- name : Security audit
58
58
run : npm run security
59
59
60
- - name : Check commit message
61
- uses : wagoid/commitlint-github-action@v5
60
+ - name : Validate PR commits with commitlint
61
+ if : github.event_name == 'pull_request'
62
+ run : npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
62
63
63
64
test :
64
65
name : Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ const schema = require("./options.json");
64
64
/**
65
65
* @template T
66
66
* @typedef {Object } BasePluginOptions
67
- * @property {Rule } [test]
68
- * @property {Rule } [include]
69
- * @property {Rule } [exclude]
67
+ * @property {Rules } [test]
68
+ * @property {Rules } [include]
69
+ * @property {Rules } [exclude]
70
70
* @property {number } [threshold]
71
71
* @property {number } [minRatio]
72
72
* @property {DeleteOriginalAssets } [deleteOriginalAssets]
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export = CompressionPlugin;
43
43
/**
44
44
* @template T
45
45
* @typedef {Object } BasePluginOptions
46
- * @property {Rule } [test]
47
- * @property {Rule } [include]
48
- * @property {Rule } [exclude]
46
+ * @property {Rules } [test]
47
+ * @property {Rules } [include]
48
+ * @property {Rules } [exclude]
49
49
* @property {number } [threshold]
50
50
* @property {number } [minRatio]
51
51
* @property {DeleteOriginalAssets } [deleteOriginalAssets]
@@ -182,9 +182,9 @@ type PathData = {
182
182
type Filename = string | ( ( fileData : PathData ) => string ) ;
183
183
type DeleteOriginalAssets = boolean | "keep-source-map" ;
184
184
type BasePluginOptions < T > = {
185
- test ?: Rule | undefined ;
186
- include ?: Rule | undefined ;
187
- exclude ?: Rule | undefined ;
185
+ test ?: Rules | undefined ;
186
+ include ?: Rules | undefined ;
187
+ exclude ?: Rules | undefined ;
188
188
threshold ?: number | undefined ;
189
189
minRatio ?: number | undefined ;
190
190
deleteOriginalAssets ?: DeleteOriginalAssets | undefined ;
You can’t perform that action at this time.
0 commit comments