Skip to content

Commit c126f3e

Browse files
fix(search-client): changes in angular.json
changes in angular.json GH-64
1 parent d5ef191 commit c126f3e

File tree

8 files changed

+37
-34
lines changed

8 files changed

+37
-34
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,5 @@ jobs:
2323
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
2424
run: npm ci --ignore-scripts
2525

26-
- name: Install Lerna
27-
run: npm i -g [email protected] --ignore-scripts
28-
29-
- name: Bootstrap Monorepo
30-
run: lerna bootstrap --ignore-scripts
31-
3226
- name: Run test
33-
run: lerna run test
27+
run: npm run test --workspaces --if-present

lerna.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"packages": [
33
"packages/search/projects/search-lib",
4-
"packages/search/projects/search-element"
4+
"packages/search/projects/search-element",
5+
"packages/user-onboarding/projects/user-onboarding-lib",
6+
"packages/user-onboarding/projects/user-onboarding-element"
57
],
68
"command": {
79
"version": {

package-lock.json

Lines changed: 16 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/search/angular.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,20 @@
103103
"test": {
104104
"builder": "@angular-devkit/build-angular:karma",
105105
"options": {
106-
"main": "projects/search-element/src/test.ts",
107-
"polyfills": "projects/search-element/src/polyfills.ts",
108-
"tsConfig": "projects/search-element/tsconfig.spec.json",
109-
"karmaConfig": "projects/search-element/karma.conf.js",
106+
"main": "projects/search-lib/src/test.ts",
107+
"polyfills": "projects/search-lib/src/polyfills.ts",
108+
"tsConfig": "projects/search-lib/tsconfig.spec.json",
109+
"karmaConfig": "projects/search-lib/karma.conf.js",
110110
"inlineStyleLanguage": "scss",
111111
"assets": [
112-
"projects/search-element/src/favicon.ico",
113-
"projects/search-element/src/assets"
112+
"projects/search-lib/src/favicon.ico",
113+
"projects/search-lib/src/assets"
114114
],
115-
"styles": ["projects/search-element/src/styles.scss"],
115+
"styles": ["projects/search-lib/src/styles.scss"],
116116
"scripts": []
117117
}
118118
}
119119
}
120120
}
121121
}
122-
}
122+
}

packages/search/projects/search-element/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
},
2020
"author": "Sourcefuse",
2121
"license": "MIT",
22-
"hash": "02200f42c00e69f33885a9b309d639afb2f6fe6aaf8a97f3af85c120c4abf2c8"
22+
"hash": "6dd267d252bfc75383c89775926b88227dcc444d771549ac9d72b6871f6577dc"
2323
}

packages/search/projects/search-lib/src/test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// https://opensource.org/licenses/MIT
55
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
66
import 'zone.js';
7+
import 'zone.js/testing';
78
import {getTestBed} from '@angular/core/testing';
89
import {
910
BrowserDynamicTestingModule,
@@ -24,7 +25,8 @@ declare const require: {
2425
// First, initialize the Angular testing environment.
2526
getTestBed().initTestEnvironment(
2627
BrowserDynamicTestingModule,
27-
platformBrowserDynamicTesting(), {
28-
teardown: { destroyAfterEach: false }
29-
},
28+
platformBrowserDynamicTesting(),
29+
{
30+
teardown: {destroyAfterEach: false},
31+
},
3032
);

packages/search/projects/search-lib/tsconfig.spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
]
99
},
1010
"files": [
11-
"src/test.ts"
11+
"src/test.ts",
12+
"src/polyfills.ts"
1213
],
1314
"include": [
1415
"**/*.spec.ts",

packages/user-onboarding/projects/user-onboarding-element/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
"access": "public",
2323
"directory": "dist"
2424
},
25-
"hash": "8bb056299923034b8c7191ea9b4445f938d54d7bbf95e521490a9470bd591642"
25+
"hash": "9358cf166bd34e45cf87768be02d052a3f6e9b91800492ef0e488a1bbeab7f4b"
2626
}

0 commit comments

Comments
 (0)