Merge pull request #7184 from byzyk/fix/allow-array-in-lib-root

fix: allow array of strings for `output.library.root`
This commit is contained in:
Tobias Koppers 2018-05-12 07:36:52 +02:00 committed by GitHub
commit d5a648b28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View File

@ -492,7 +492,14 @@
"properties": { "properties": {
"root": { "root": {
"description": "Name of the property exposed globally by a UMD library", "description": "Name of the property exposed globally by a UMD library",
"type": "string" "anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/common.arrayOfStringValues"
}
]
}, },
"amd": { "amd": {
"description": "Name of the exposed AMD library in the UMD", "description": "Name of the exposed AMD library in the UMD",

View File

@ -0,0 +1,3 @@
it("should run", function() {
});

View File

@ -0,0 +1,10 @@
module.exports = {
output: {
libraryTarget: "umd",
library: {
root: ["test", "library"],
amd: "test-library",
commonjs: "test-library"
}
}
};