Skip to content

Commit

Permalink
fix(): fix package types
Browse files Browse the repository at this point in the history
> new release nightly
  • Loading branch information
Enlcxx committed Dec 14, 2019
1 parent 9ab144e commit 54dbc97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/color/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './color';
export { Color, hexColorToInt, ColorClass } from './color';
2 changes: 1 addition & 1 deletion src/lib/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/@alyle/ui",
"lib": {
"entryFile": "./index.ts",
"entryFile": "./public_api.ts",
"umdId": "ly.core"
}
}
2 changes: 1 addition & 1 deletion tools/src/build-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const replace = require('replace-in-file');
// fix typings
const changes = replace.sync({
files: 'dist/@alyle/ui/**/*.d.ts',
from: /\.\.\/\.\.\/\@alyle\/ui/g,
from: /(:?\.\.\/)+@alyle\/ui/g,
to: '@alyle/ui'
});

Expand Down
4 changes: 2 additions & 2 deletions tools/src/prepare-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ components.forEach((lib, index) => {
writeFileSync(`${dist}/${lib.path}/package.json`, JSON.stringify({
ngPackage: {
lib: {
entryFile: 'index.ts',
entryFile: 'public_api.ts',
umdId: `ly.${camelCase(lib.path)}`
},
}
}
}), 'utf8');
}
Expand Down

0 comments on commit 54dbc97

Please sign in to comment.