dbdiagram 0.1.1-rc.1 → 0.1.2
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/README.md
CHANGED
|
@@ -5,11 +5,11 @@ A CLI tool for dbdiagram.io.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install -g dbdiagram
|
|
8
|
+
npm install -g dbdiagram
|
|
9
9
|
# or
|
|
10
|
-
yarn global add dbdiagram
|
|
10
|
+
yarn global add dbdiagram
|
|
11
11
|
# or
|
|
12
|
-
pnpm add -g dbdiagram
|
|
12
|
+
pnpm add -g dbdiagram
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -83,11 +83,11 @@ Pull DBML content from a diagram on dbdiagram.io.
|
|
|
83
83
|
**Options:**
|
|
84
84
|
|
|
85
85
|
- `--diagram-id <id>` — The diagram to pull from
|
|
86
|
-
- `-o, --out-file <filepath>` — Save to a file
|
|
86
|
+
- `-o, --out-file <filepath>` — Save to a file (omit to use the configured entry file from settings, or print to stdout)
|
|
87
87
|
|
|
88
88
|
```sh
|
|
89
|
-
dbdiagram pull --diagram-id <id> # print
|
|
90
|
-
dbdiagram pull --diagram-id <id> -o schema.dbml # save to file
|
|
89
|
+
dbdiagram pull --diagram-id <id> # print to stdout (or save to the configured entry file)
|
|
90
|
+
dbdiagram pull --diagram-id <id> -o schema.dbml # save to a specific file
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
---
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log, spinner } from '@clack/prompts';
|
|
2
|
-
import { DBDOCS_CONFIGS } from '../../config.
|
|
2
|
+
import { DBDOCS_CONFIGS } from '../../config.js';
|
|
3
3
|
import { getCredential } from '../../config/credential-manager.js';
|
|
4
4
|
import { NOT_LOGGED_IN_MESSAGE } from '../../constants/auth-message.constant.js';
|
|
5
5
|
import { portalIntegration } from '../../integrations/portal/portal.integration.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log, spinner } from '@clack/prompts';
|
|
2
|
-
import { DBDIAGRAM_CONFIGS } from '../../config.
|
|
2
|
+
import { DBDIAGRAM_CONFIGS } from '../../config.js';
|
|
3
3
|
import { getCredential } from '../../config/credential-manager.js';
|
|
4
4
|
import { NOT_LOGGED_IN_MESSAGE } from '../../constants/auth-message.constant.js';
|
|
5
5
|
import { portalIntegration } from '../../integrations/portal/portal.integration.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbdiagram",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbdiagram": "dist/index.js"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"prebuild": "rm -rf ./dist",
|
|
21
21
|
"build": "tsc -p tsconfig.build.json",
|
|
22
22
|
"postbuild": "cp -r src/assets dist/assets",
|
|
23
|
-
"test": "vitest run --coverage --changed master",
|
|
24
|
-
"test:ci": "vitest run --coverage --config vitest.config.ci.ts --changed master",
|
|
23
|
+
"test": "vitest run --coverage --changed origin/master",
|
|
24
|
+
"test:ci": "vitest run --coverage --config vitest.config.ci.ts --changed origin/master",
|
|
25
25
|
"test:all": "vitest run --coverage",
|
|
26
26
|
"dev": "tsx src/index.ts",
|
|
27
27
|
"start": "node dist/index.js",
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
"@types/luxon": "^3.7.1",
|
|
45
45
|
"@types/node": "^25.7.0",
|
|
46
46
|
"@vitest/coverage-v8": "^4.1.0",
|
|
47
|
+
"danger": "^13.0.10",
|
|
48
|
+
"danger-plugin-istanbul-coverage": "^1.6.2",
|
|
47
49
|
"eslint": "^10.3.0",
|
|
48
50
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
49
51
|
"eslint-plugin-import-x": "^4.16.2",
|
|
@@ -52,5 +54,8 @@
|
|
|
52
54
|
"typescript": "^5.7.0",
|
|
53
55
|
"typescript-eslint": "^8.59.3",
|
|
54
56
|
"vitest": "^4.1.0"
|
|
57
|
+
},
|
|
58
|
+
"resolutions": {
|
|
59
|
+
"undici": "6.27.0"
|
|
55
60
|
}
|
|
56
61
|
}
|
package/dist/config.staging.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const PORTAL_URLS = {
|
|
2
|
-
loginUrl: process.env.PORTAL_LOGIN_URL || 'https://staging.dbdiagram.io',
|
|
3
|
-
apiUrl: process.env.PORTAL_API_URL || 'https://staging-api.dbdocs.io',
|
|
4
|
-
};
|
|
5
|
-
export const PORTAL_LOGIN_CONFIGS = {
|
|
6
|
-
clientId: 'dbdiagram-cli',
|
|
7
|
-
loginTimeoutMs: 5 * 60 * 1000,
|
|
8
|
-
};
|
|
9
|
-
export const DBDIAGRAM_CONFIGS = {
|
|
10
|
-
baseUrl: process.env.DBDIAGRAM_BASE_URL || 'https://staging.dbdiagram.io',
|
|
11
|
-
};
|
|
12
|
-
export const DBDOCS_CONFIGS = {
|
|
13
|
-
baseUrl: process.env.DBDOCS_BASE_URL || 'https://staging.dbdocs.io',
|
|
14
|
-
};
|