@netlify/angular-runtime
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "@netlify/angular-runtime", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Netlify Angular Runtime - Run Angular seamlessly on Netlify.", | ||
@@ -25,3 +25,6 @@ "main": "src/index.js", | ||
"prepublishOnly:test": "npm test", | ||
"test": "cd demo && npm ci && netlify build --cwd . --offline && cd .. && node --test" | ||
"pretest:demo": "cd demo && npm ci && netlify build --cwd . --offline && cd ..", | ||
"pretest:fixtures": "cd tests/fixtures/non-angular-project && npm ci", | ||
"pretest": "run-s pretest:*", | ||
"test": "node --test" | ||
}, | ||
@@ -61,2 +64,3 @@ "repository": { | ||
"netlify-cli": "^17.2.0", | ||
"@netlify/build": "^29.28.2", | ||
"npm-run-all": "^4.1.5", | ||
@@ -63,0 +67,0 @@ "prettier": "^2.1.2" |
@@ -6,4 +6,4 @@ const { join } = require('path') | ||
const fixOutputDir = async function ({ failBuild, siteRoot, PUBLISH_DIR, IS_LOCAL, netlifyConfig }) { | ||
const angularJson = getAngularJson({ failBuild, siteRoot }) | ||
const fixOutputDir = async function ({ failBuild, failPlugin, siteRoot, PUBLISH_DIR, IS_LOCAL, netlifyConfig }) { | ||
const angularJson = getAngularJson({ failPlugin, siteRoot }) | ||
const project = getProject(angularJson) | ||
@@ -10,0 +10,0 @@ |
@@ -22,3 +22,4 @@ const { rm } = require('fs/promises') | ||
async onPreBuild({ netlifyConfig, utils, constants }) { | ||
const siteRoot = getAngularRoot({ netlifyConfig }) | ||
const { failBuild, failPlugin } = utils.build | ||
const siteRoot = getAngularRoot({ failBuild, netlifyConfig }) | ||
isValidAngularProject = await validateAngularVersion(siteRoot) | ||
@@ -30,3 +31,3 @@ if (!isValidAngularProject) { | ||
ensureNoCompetingPlugin(siteRoot, utils.build.failBuild) | ||
ensureNoCompetingPlugin(siteRoot, failBuild) | ||
@@ -37,3 +38,4 @@ netlifyConfig.build.command ??= 'npm run build' | ||
siteRoot, | ||
failBuild: utils.build.failBuild, | ||
failBuild, | ||
failPlugin, | ||
PUBLISH_DIR: constants.PUBLISH_DIR, | ||
@@ -49,6 +51,6 @@ IS_LOCAL: constants.IS_LOCAL, | ||
const { failBuild } = utils.build | ||
const { failBuild, failPlugin } = utils.build | ||
const siteRoot = getAngularRoot({ netlifyConfig }) | ||
const angularJson = getAngularJson({ failBuild, siteRoot }) | ||
const siteRoot = getAngularRoot({ failBuild, netlifyConfig }) | ||
const angularJson = getAngularJson({ failPlugin, siteRoot }) | ||
@@ -55,0 +57,0 @@ await setUpEdgeFunction({ |
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
17361
253
8