Skip to content

Commit

Permalink
fix(web): use missing umdName option in package builder
Browse files Browse the repository at this point in the history
  • Loading branch information
iamandrewluca authored and vsavkin committed Aug 7, 2020
1 parent 757bce7 commit fdab3b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = {
{ name: 'node', description: 'anything Node specific' },
{ name: 'nx-plugin', description: 'anything Nx Plugin specific' },
{ name: 'react', description: 'anything React specific' },
{ name: 'web', description: 'anything Web specific' },
{ name: 'linter', description: 'anything Linter specific' },
{ name: 'storybook', description: 'anything Storybook specific' },
{
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ The scope must be one of the following:
- node - anything Node specific
- linter - anything Linter specific
- react - anything React specific
- web - anything Web specific
- storybook - anything Storybook specific
- testing - anything testing specific (e.g., jest or cypress)
- repo - anything related to managing the repo itself
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/builders/package/package.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function createRollupOptions(
globals,
format: config.format,
file: `${options.outputPath}/${context.target.project}.${config.extension}.js`,
name: toClassName(context.target.project),
name: options.umdName || toClassName(context.target.project),
},
external: (id) => externalPackages.includes(id),
plugins,
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface PackageBuilderOptions {
watch?: boolean;
assets?: any[];
updateBuildableProjectDepsInPackageJson?: boolean;
umdName?: string;
}

export interface AssetGlobPattern extends JsonObject {
Expand Down

0 comments on commit fdab3b9

Please sign in to comment.