Skip to content

Commit db5990c

Browse files
committed
chore: patch rss-parser for browser
1 parent e5be7af commit db5990c

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"apps/this-is-learning/src/assets"
5959
],
6060
"styles": ["apps/this-is-learning/src/styles.scss"],
61-
"scripts": []
61+
"scripts": [],
62+
"allowedCommonJsDependencies": ["rss-parser"]
6263
},
6364
"configurations": {
6465
"production": {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"version": "0.0.0",
66
"license": "MIT",
77
"scripts": {
8-
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
8+
"postinstall": "node ./decorate-angular-cli.js && yarn patch-commonjs-dependencies",
9+
"patch-commonjs-dependencies": "json -I -f node_modules/rss-parser/package.json -e \"this.main = 'dist/rss-parser.js';\"",
910
"ngcc": "ngcc --first-only --properties es2015 module fesm2015 esm2015 browser main --create-ivy-entry-points",
1011
"ng": "nx",
1112
"nx": "nx",
@@ -76,6 +77,7 @@
7677
"eslint-plugin-cypress": "^2.10.3",
7778
"jest": "~26.2.2",
7879
"jest-preset-angular": "~8.4.0",
80+
"json": "^11.0.0",
7981
"prettier": "~2.2.1",
8082
"rss-parser": "^3.12.0",
8183
"string-strip-html": "^8.3.0",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6743,6 +6743,11 @@ json5@^1.0.1:
67436743
dependencies:
67446744
minimist "^1.2.0"
67456745

6746+
json@^11.0.0:
6747+
version "11.0.0"
6748+
resolved "https://registry.yarnpkg.com/json/-/json-11.0.0.tgz#2e84493134e2f42c131165aa22a124df38b3a3ee"
6749+
integrity sha512-N/ITv3Yw9Za8cGxuQqSqrq6RHnlaHWZkAFavcfpH/R52522c26EbihMxnY7A1chxfXJ4d+cEFIsyTgfi9GihrA==
6750+
67466751
jsonc-parser@3.0.0:
67476752
version "3.0.0"
67486753
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22"

0 commit comments

Comments
 (0)