@netlify/config
Advanced tools
Comparing version 20.1.0 to 20.2.0
@@ -17,3 +17,8 @@ import { resolve, relative, parse } from 'path'; | ||
// (if `baseRelDir` is `true`). | ||
const FILE_PATH_CONFIG_PROPS = ['functionsDirectory', 'build.publish', 'build.edge_functions']; | ||
const FILE_PATH_CONFIG_PROPS = [ | ||
'functionsDirectory', | ||
'functions.*.deno_import_map', | ||
'build.publish', | ||
'build.edge_functions', | ||
]; | ||
const resolvePaths = function (config, propNames, baseRel, repositoryRoot) { | ||
@@ -20,0 +25,0 @@ return propNames.reduce((configA, propName) => resolvePathProp(configA, propName, baseRel, repositoryRoot), config); |
@@ -39,2 +39,3 @@ import isPlainObj from 'is-plain-obj'; | ||
export const FUNCTION_CONFIG_PROPERTIES = new Set([ | ||
'deno_import_map', | ||
'directory', | ||
@@ -41,0 +42,0 @@ 'external_node_modules', |
@@ -185,2 +185,10 @@ import CronParser from 'cron-parser'; | ||
{ | ||
property: 'functions.*.deno_import_map', | ||
check: isString, | ||
message: 'must be a string.', | ||
example: (value, key, prevPath) => ({ | ||
functions: { [prevPath[1]]: { deno_import_map: 'path/to/import_map.json' } }, | ||
}), | ||
}, | ||
{ | ||
property: 'functions.*.external_node_modules', | ||
@@ -187,0 +195,0 @@ check: isArrayOfStrings, |
{ | ||
"name": "@netlify/config", | ||
"version": "20.1.0", | ||
"version": "20.2.0", | ||
"description": "Netlify config module", | ||
@@ -98,3 +98,3 @@ "type": "module", | ||
}, | ||
"gitHead": "e22d6106d734d2b4b7b49d2a2350be21913c0cbf" | ||
"gitHead": "48bc6057d30ef3c5173629d4345f804271c0a426" | ||
} |
126122
2723