Skip to content

Commit

Permalink
updated snapshots, rerun tooling scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Jun 25, 2019
1 parent b320269 commit 68f794d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions declarations/WebpackOptions.d.ts
Expand Up @@ -558,6 +558,10 @@ export interface RuleSetRule {
* Shortcut for use.query
*/
query?: RuleSetQuery;
/**
* Match rules with custom resource name
*/
realResource?: RuleSetConditionOrConditions;
/**
* Options for the resolver
*/
Expand All @@ -566,10 +570,6 @@ export interface RuleSetRule {
* Match the resource path of the module
*/
resource?: RuleSetConditionOrConditionsAbsolute;
/**
* Match rules with custom resource name
*/
realResource?: RuleSetConditionOrConditions;
/**
* Match the resource query of the module
*/
Expand Down
16 changes: 8 additions & 8 deletions schemas/WebpackOptions.json
Expand Up @@ -1511,6 +1511,14 @@
}
]
},
"realResource": {
"description": "Match rules with custom resource name",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditions"
}
]
},
"resolve": {
"description": "Options for the resolver",
"type": "object",
Expand All @@ -1528,14 +1536,6 @@
}
]
},
"realResource": {
"description": "Match rules with custom resource name",
"anyOf": [
{
"$ref": "#/definitions/RuleSetConditionOrConditions"
}
]
},
"resourceQuery": {
"description": "Match the resource query of the module",
"anyOf": [
Expand Down
2 changes: 1 addition & 1 deletion test/Validation.test.js
Expand Up @@ -178,7 +178,7 @@ describe("Validation", () => {
expect(msg).toMatchInlineSnapshot(`
"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[0].oneOf[0] has an unknown property 'passer'. These properties are valid:
object { compiler?, enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resolve?, resource?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }
object { compiler?, enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, realResource?, resolve?, resource?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }
-> A rule"
`)
);
Expand Down

0 comments on commit 68f794d

Please sign in to comment.