fix(angular): fix @nrwl/angular package build to produce the right type definitions and package entry points (#8054)
This commit is contained in:
parent
b2699df779
commit
0280e5ec7b
@ -17,10 +17,6 @@
|
|||||||
"Cypress",
|
"Cypress",
|
||||||
"CLI"
|
"CLI"
|
||||||
],
|
],
|
||||||
"main": "./bundles/nrwl-angular.umd.js",
|
|
||||||
"types": "./nrwl-angular.d.ts",
|
|
||||||
"module": "esm5/nrwl-angular.js",
|
|
||||||
"es2015": "esm2015/nrwl-angular.js",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
"./generators": "./generators.js",
|
"./generators": "./generators.js",
|
||||||
"./tailwind": "./tailwind.js",
|
"./tailwind": "./tailwind.js",
|
||||||
|
|||||||
@ -4,6 +4,5 @@ const fs = require('fs-extra');
|
|||||||
childProcess.execSync(`npx ng-packagr -p packages/angular/ng-package.json`, {
|
childProcess.execSync(`npx ng-packagr -p packages/angular/ng-package.json`, {
|
||||||
stdio: [0, 1, 2],
|
stdio: [0, 1, 2],
|
||||||
});
|
});
|
||||||
fs.removeSync('packages/angular/dist/src');
|
|
||||||
fs.copySync('packages/angular/dist/', 'build/packages/angular/');
|
fs.copySync('packages/angular/dist/', 'build/packages/angular/');
|
||||||
fs.removeSync('packages/angular/dist/');
|
fs.removeSync('packages/angular/dist/');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user