From 41303190f86d6e9e40c6732a2ef8a8843d02c108 Mon Sep 17 00:00:00 2001 From: Edd Date: Thu, 7 Apr 2022 12:24:04 +0100 Subject: [PATCH] Remove custom ignore (#221) --- ignore-netlify-build.js | 9 --------- netlify.toml | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 ignore-netlify-build.js diff --git a/ignore-netlify-build.js b/ignore-netlify-build.js deleted file mode 100644 index adcfea9bd..000000000 --- a/ignore-netlify-build.js +++ /dev/null @@ -1,9 +0,0 @@ -const currentProject = process.env.NX_PROJECT_NAME; -const execSync = require('child_process').execSync; -const getAffected = `npx nx print-affected`; -const output = execSync(getAffected).toString(); -//get the list of changed projects from the output -const changedProjects = JSON.parse(output).projects; // array of affected projects -process.exitCode = changedProjects.some((project) => project === currentProject) - ? 0 - : 1; diff --git a/netlify.toml b/netlify.toml index 7abf75d68..9260a9130 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,2 @@ -[build] - ignore = "node ignore-netlify-build.js" - [functions] - included_files = ["!node_modules/@sentry/cli/sentry-cli"] \ No newline at end of file + included_files = ["!node_modules/@sentry/cli/sentry-cli"]