@netlify/angular-runtime
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "@netlify/angular-runtime", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Netlify Angular Runtime - Run Angular seamlessly on Netlify.", | ||
@@ -20,9 +20,7 @@ "main": "src/index.js", | ||
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier", | ||
"prepublishOnly": "run-s prepublishOnly:*", | ||
"prepublishOnly:checkout": "git checkout main", | ||
"prepublishOnly:pull": "git pull", | ||
"prepublishOnly:install": "npm ci", | ||
"prepublishOnly:test": "npm test", | ||
"pretest:demo": "cd demo && npm ci && netlify build --cwd . --offline && cd ..", | ||
"pretest:fixtures": "cd tests/fixtures/non-angular-project && npm ci", | ||
"prepublishOnly": "npm ci && npm test", | ||
"pretest:demo": "cd demo && npm ci && netlify build --cwd . --offline", | ||
"pretest:fixtures": "run-s pretest:fixtures:*", | ||
"pretest:fixtures:non-angular-project": "cd tests/fixtures/non-angular-project && npm ci", | ||
"pretest:fixtures:missing-angular-deps": "cd tests/fixtures/missing-angular-deps && npm ci", | ||
"pretest": "run-s pretest:*", | ||
@@ -29,0 +27,0 @@ "test": "node --test" |
@@ -10,5 +10,8 @@ const { readJSON } = require('fs-extra') | ||
const validateAngularVersion = async function (root) { | ||
// eslint-disable-next-line n/no-missing-require | ||
const packagePath = require.resolve('@angular/core/package.json', { paths: [root] }) | ||
if (!packagePath) { | ||
let packagePath | ||
try { | ||
// eslint-disable-next-line n/no-missing-require | ||
packagePath = require.resolve('@angular/core/package.json', { paths: [root] }) | ||
} catch { | ||
// module not found | ||
console.warn('This site does not seem to be using Angular.') | ||
@@ -15,0 +18,0 @@ return false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17385
256