@netlify/build 29.35.0 → 29.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { join } from 'path';
1
+ import { join, resolve } from 'path';
2
2
  import { addErrorInfo } from '../error/info.js';
3
3
  import { installMissingPlugins, installIntegrationPlugins } from '../install/missing.js';
4
4
  import { resolvePath, tryResolvePath } from '../utils/resolve.js';
@@ -129,12 +129,14 @@ const handleIntegrations = async function ({ integrations, autoPluginsDir, mode,
129
129
  autoPluginsDir,
130
130
  buildDir,
131
131
  context,
132
+ testOpts,
132
133
  })));
133
134
  };
134
- const resolveIntegration = async function ({ integration, autoPluginsDir, buildDir, context }) {
135
+ const resolveIntegration = async function ({ integration, autoPluginsDir, buildDir, context, testOpts }) {
135
136
  if (typeof integration.dev !== 'undefined' && context === 'dev') {
136
137
  const { path } = integration.dev;
137
- const pluginPath = await resolvePath(`${path}/.ntli/build`, buildDir);
138
+ const integrationDir = testOpts.cwd ? resolve(testOpts.cwd, path) : resolve(path);
139
+ const pluginPath = await resolvePath(`${integrationDir}/.ntli/build`, buildDir);
138
140
  return { pluginPath, packageName: `${integration.slug}`, isIntegration: true, integration, loadedFrom: 'local' };
139
141
  }
140
142
  const pluginPath = await resolvePath(`${integration.slug}-buildhooks`, autoPluginsDir);
package/lib/steps/get.js CHANGED
@@ -32,7 +32,7 @@ export const getDevSteps = function (command, steps, eventHandlers) {
32
32
  coreStepDescription: () => 'Run command for local development',
33
33
  };
34
34
  const eventSteps = getEventSteps(eventHandlers);
35
- const sortedSteps = sortSteps([...steps, eventSteps, preDevCleanup, devCommandStep], DEV_EVENTS);
35
+ const sortedSteps = sortSteps([preDevCleanup, ...steps, eventSteps, devCommandStep], DEV_EVENTS);
36
36
  const events = getEvents(sortedSteps);
37
37
  return { steps: sortedSteps, events };
38
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.35.0",
3
+ "version": "29.35.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -73,12 +73,12 @@
73
73
  "@netlify/config": "^20.12.0",
74
74
  "@netlify/edge-bundler": "11.2.2",
75
75
  "@netlify/framework-info": "^9.8.10",
76
- "@netlify/functions-utils": "^5.2.50",
76
+ "@netlify/functions-utils": "^5.2.51",
77
77
  "@netlify/git-utils": "^5.1.1",
78
78
  "@netlify/opentelemetry-utils": "^1.0.1",
79
79
  "@netlify/plugins-list": "^6.73.0",
80
80
  "@netlify/run-utils": "^5.1.1",
81
- "@netlify/zip-it-and-ship-it": "9.29.1",
81
+ "@netlify/zip-it-and-ship-it": "9.29.2",
82
82
  "@opentelemetry/api": "~1.6.0",
83
83
  "@sindresorhus/slugify": "^2.0.0",
84
84
  "ansi-escapes": "^6.0.0",
@@ -163,5 +163,5 @@
163
163
  "engines": {
164
164
  "node": "^14.16.0 || >=16.0.0"
165
165
  },
166
- "gitHead": "536aea5ec8dc76503d247828c65c4d247fa2a7ae"
166
+ "gitHead": "3b4449ddf0a4c4107fb0f1a4a56408839c927583"
167
167
  }