@netlify/config 24.4.4 → 24.5.0
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.
package/lib/files.js
CHANGED
|
@@ -18,7 +18,7 @@ const FILE_PATH_CONFIG_PROPS = [
|
|
|
18
18
|
'functions.*.deno_import_map',
|
|
19
19
|
'build.publish',
|
|
20
20
|
'build.edge_functions',
|
|
21
|
-
'
|
|
21
|
+
'database.migrations.path',
|
|
22
22
|
];
|
|
23
23
|
/**
|
|
24
24
|
* Make configuration paths relative to `buildDir` and converts them to
|
|
@@ -96,9 +96,9 @@ const DEFAULT_PATHS = [
|
|
|
96
96
|
propName: 'build.edge_functions',
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
getConfig: (directory) => ({
|
|
100
|
-
defaultPath: 'netlify/
|
|
101
|
-
propName: '
|
|
99
|
+
getConfig: (directory) => ({ database: { migrations: { path: directory } } }),
|
|
100
|
+
defaultPath: 'netlify/database/migrations',
|
|
101
|
+
propName: 'database.migrations.path',
|
|
102
102
|
},
|
|
103
103
|
];
|
|
104
104
|
const addDefaultPath = ({ repositoryRoot, packagePath, baseRel, defaultPath, getConfig, propName, }) => {
|
|
@@ -101,7 +101,7 @@ export const PRE_NORMALIZE_VALIDATIONS: ({
|
|
|
101
101
|
check: typeof isPlainObj;
|
|
102
102
|
message: string;
|
|
103
103
|
example: () => {
|
|
104
|
-
|
|
104
|
+
database: {
|
|
105
105
|
migrations: {
|
|
106
106
|
path: string;
|
|
107
107
|
};
|
|
@@ -310,7 +310,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
|
|
|
310
310
|
check: (value: any) => value is string;
|
|
311
311
|
message: string;
|
|
312
312
|
example: () => {
|
|
313
|
-
|
|
313
|
+
database: {
|
|
314
314
|
migrations: {
|
|
315
315
|
path: string;
|
|
316
316
|
};
|
|
@@ -105,16 +105,16 @@ export const PRE_NORMALIZE_VALIDATIONS = [
|
|
|
105
105
|
}),
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
property: '
|
|
108
|
+
property: 'database',
|
|
109
109
|
check: isPlainObj,
|
|
110
110
|
message: 'must be a plain object.',
|
|
111
|
-
example: () => ({
|
|
111
|
+
example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
property: '
|
|
114
|
+
property: 'database.migrations',
|
|
115
115
|
check: isPlainObj,
|
|
116
116
|
message: 'must be a plain object.',
|
|
117
|
-
example: () => ({
|
|
117
|
+
example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
|
|
118
118
|
},
|
|
119
119
|
];
|
|
120
120
|
const EXAMPLE_PORT = 80;
|
|
@@ -265,10 +265,10 @@ export const POST_NORMALIZE_VALIDATIONS = [
|
|
|
265
265
|
}),
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
|
-
property: '
|
|
268
|
+
property: 'database.migrations.path',
|
|
269
269
|
check: isString,
|
|
270
270
|
message: 'must be a string.',
|
|
271
|
-
example: () => ({
|
|
271
|
+
example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
|
|
272
272
|
},
|
|
273
273
|
...edgeFunctionValidations,
|
|
274
274
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.5.0",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=18.14.0"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "c77982ba1d1886e81f1a517318fcf93123f2a260"
|
|
100
100
|
}
|