From 487b57bce35315a0fa8fe9b0b92ce3e96869139a Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Tue, 24 Jan 2023 14:48:29 +0100 Subject: [PATCH] fix: issue with bundling angular builds (#247) --- output/angular/ng-package.json | 2 +- output/angular/package.json | 6 +++--- .../_templates/mitosis/new/angular-package.ejs.t | 9 +++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 packages/components/_templates/mitosis/new/angular-package.ejs.t diff --git a/output/angular/ng-package.json b/output/angular/ng-package.json index 999f3eb1d1c..2ddfd128d20 100644 --- a/output/angular/ng-package.json +++ b/output/angular/ng-package.json @@ -4,6 +4,6 @@ "lib": { "entryFile": "src/index.ts" }, - "assets": ["src/components/**/*.scss"], + "assets": ["src/**/*.scss"], "allowedNonPeerDependencies": ["@db-ui/foundations"] } diff --git a/output/angular/package.json b/output/angular/package.json index 2320edc904f..9908e71fed3 100644 --- a/output/angular/package.json +++ b/output/angular/package.json @@ -25,6 +25,9 @@ "./icon.scss": { "sass": "./src/components/icon/icon.scss" }, + "./input.scss": { + "sass": "./src/components/input/input.scss" + }, "./tab.scss": { "sass": "./src/components/tab/tab.scss" }, @@ -42,9 +45,6 @@ "@angular-devkit/build-angular": "~14.2.10", "ng-packagr": "14.2.2" }, - "files": [ - "dist/" - ], "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public" diff --git a/packages/components/_templates/mitosis/new/angular-package.ejs.t b/packages/components/_templates/mitosis/new/angular-package.ejs.t new file mode 100644 index 00000000000..b807aeb7418 --- /dev/null +++ b/packages/components/_templates/mitosis/new/angular-package.ejs.t @@ -0,0 +1,9 @@ +--- +inject: true +to: ../../output/angular/package.json +after: "exports": { +skip_if: ./<%= name %>.scss +--- + "./<%= name %>.scss": { + "sass": "./src/components/<%= name %>/<%= name %>.scss" + },