@payloadcms/drizzle 3.68.0 → 3.69.0-canary.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/drizzle",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.69.0-canary.0",
|
|
4
4
|
"description": "A library of shared functions used by different payload database adapters",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@types/pg": "8.10.2",
|
|
61
61
|
"@types/to-snake-case": "1.0.0",
|
|
62
62
|
"@payloadcms/eslint-config": "3.28.0",
|
|
63
|
-
"payload": "3.
|
|
63
|
+
"payload": "3.69.0-canary.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"payload": "3.
|
|
66
|
+
"payload": "3.69.0-canary.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "pnpm build:swc && pnpm build:types",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attempt to find migrations directory.
|
|
3
|
-
*
|
|
4
|
-
* Checks for the following directories in order:
|
|
5
|
-
* - `migrationDir` argument from Payload config
|
|
6
|
-
* - `src/migrations`
|
|
7
|
-
* - `dist/migrations`
|
|
8
|
-
* - `migrations`
|
|
9
|
-
*
|
|
10
|
-
* Defaults to `src/migrations`
|
|
11
|
-
*
|
|
12
|
-
* @param migrationDir
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare function findMigrationDir(migrationDir?: string): string;
|
|
16
|
-
//# sourceMappingURL=findMigrationDir.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findMigrationDir.d.ts","sourceRoot":"","sources":["../src/findMigrationDir.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAyB9D"}
|
package/dist/findMigrationDir.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
/**
|
|
4
|
-
* Attempt to find migrations directory.
|
|
5
|
-
*
|
|
6
|
-
* Checks for the following directories in order:
|
|
7
|
-
* - `migrationDir` argument from Payload config
|
|
8
|
-
* - `src/migrations`
|
|
9
|
-
* - `dist/migrations`
|
|
10
|
-
* - `migrations`
|
|
11
|
-
*
|
|
12
|
-
* Defaults to `src/migrations`
|
|
13
|
-
*
|
|
14
|
-
* @param migrationDir
|
|
15
|
-
* @returns
|
|
16
|
-
*/ export function findMigrationDir(migrationDir) {
|
|
17
|
-
const cwd = process.cwd();
|
|
18
|
-
const srcDir = path.resolve(cwd, 'src/migrations');
|
|
19
|
-
const distDir = path.resolve(cwd, 'dist/migrations');
|
|
20
|
-
const relativeMigrations = path.resolve(cwd, 'migrations');
|
|
21
|
-
// Use arg if provided
|
|
22
|
-
if (migrationDir) {
|
|
23
|
-
return migrationDir;
|
|
24
|
-
}
|
|
25
|
-
// Check other common locations
|
|
26
|
-
if (fs.existsSync(srcDir)) {
|
|
27
|
-
return srcDir;
|
|
28
|
-
}
|
|
29
|
-
if (fs.existsSync(distDir)) {
|
|
30
|
-
return distDir;
|
|
31
|
-
}
|
|
32
|
-
if (fs.existsSync(relativeMigrations)) {
|
|
33
|
-
return relativeMigrations;
|
|
34
|
-
}
|
|
35
|
-
return srcDir;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=findMigrationDir.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/findMigrationDir.ts"],"sourcesContent":["import fs from 'fs'\nimport path from 'path'\n\n/**\n * Attempt to find migrations directory.\n *\n * Checks for the following directories in order:\n * - `migrationDir` argument from Payload config\n * - `src/migrations`\n * - `dist/migrations`\n * - `migrations`\n *\n * Defaults to `src/migrations`\n *\n * @param migrationDir\n * @returns\n */\nexport function findMigrationDir(migrationDir?: string): string {\n const cwd = process.cwd()\n const srcDir = path.resolve(cwd, 'src/migrations')\n const distDir = path.resolve(cwd, 'dist/migrations')\n const relativeMigrations = path.resolve(cwd, 'migrations')\n\n // Use arg if provided\n if (migrationDir) {\n return migrationDir\n }\n\n // Check other common locations\n if (fs.existsSync(srcDir)) {\n return srcDir\n }\n\n if (fs.existsSync(distDir)) {\n return distDir\n }\n\n if (fs.existsSync(relativeMigrations)) {\n return relativeMigrations\n }\n\n return srcDir\n}\n"],"names":["fs","path","findMigrationDir","migrationDir","cwd","process","srcDir","resolve","distDir","relativeMigrations","existsSync"],"mappings":"AAAA,OAAOA,QAAQ,KAAI;AACnB,OAAOC,UAAU,OAAM;AAEvB;;;;;;;;;;;;;CAaC,GACD,OAAO,SAASC,iBAAiBC,YAAqB;IACpD,MAAMC,MAAMC,QAAQD,GAAG;IACvB,MAAME,SAASL,KAAKM,OAAO,CAACH,KAAK;IACjC,MAAMI,UAAUP,KAAKM,OAAO,CAACH,KAAK;IAClC,MAAMK,qBAAqBR,KAAKM,OAAO,CAACH,KAAK;IAE7C,sBAAsB;IACtB,IAAID,cAAc;QAChB,OAAOA;IACT;IAEA,+BAA+B;IAC/B,IAAIH,GAAGU,UAAU,CAACJ,SAAS;QACzB,OAAOA;IACT;IAEA,IAAIN,GAAGU,UAAU,CAACF,UAAU;QAC1B,OAAOA;IACT;IAEA,IAAIR,GAAGU,UAAU,CAACD,qBAAqB;QACrC,OAAOA;IACT;IAEA,OAAOH;AACT"}
|