@lightdash/cli 0.2240.5 → 0.2242.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.
|
@@ -18,6 +18,7 @@ export type DbtCompileOptions = {
|
|
|
18
18
|
useDbtList: boolean | undefined;
|
|
19
19
|
defer: boolean | undefined;
|
|
20
20
|
targetPath: string | undefined;
|
|
21
|
+
favorState: boolean | undefined;
|
|
21
22
|
};
|
|
22
23
|
export declare const dbtCompile: (options: DbtCompileOptions) => Promise<void>;
|
|
23
24
|
export declare function maybeCompileModelsAndJoins(loadManifestOpts: LoadManifestArgs, initialOptions: DbtCompileOptions): Promise<string[] | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/handlers/dbt/compile.ts"],"names":[],"mappings":"AAUA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,MAAM,iBAAiB,GAAG;IAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,cAAc,EAAE,OAAO,GAAG,SA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,YAAmB,iBAAiB,kBAW1D,CAAC;AAgFF,wBAAsB,0BAA0B,CAC5C,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,iBAAiB,GAClC,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAsF/B"}
|
|
@@ -25,6 +25,7 @@ const dbtCompileArgs = [
|
|
|
25
25
|
'fullRefresh',
|
|
26
26
|
'defer',
|
|
27
27
|
'targetPath',
|
|
28
|
+
'favorState',
|
|
28
29
|
];
|
|
29
30
|
const camelToSnakeCase = (str) => str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
30
31
|
const optionsToArgs = (options) => Object.entries(options).reduce((acc, [key, value]) => {
|
package/dist/index.js
CHANGED
|
@@ -133,6 +133,7 @@ ${styles.bold('Examples:')}
|
|
|
133
133
|
.option('--state <state>')
|
|
134
134
|
.option('--defer', 'dbt property. Resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
135
135
|
.option('--no-defer', 'dbt property. Do not resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
136
|
+
.option('--favor-state', 'dbt property. When deferring, prioritize node definitions from the --state directory.', undefined)
|
|
136
137
|
.option('--full-refresh')
|
|
137
138
|
.option('--exclude-meta', 'exclude Lightdash metadata from the generated .yml', false)
|
|
138
139
|
.option('--verbose', undefined, false)
|
|
@@ -162,6 +163,7 @@ commander_1.program
|
|
|
162
163
|
.option('--skip-dbt-compile', 'Skip `dbt compile` and deploy from the existing ./target/manifest.json', false)
|
|
163
164
|
.option('--defer', 'dbt property. Resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
164
165
|
.option('--no-defer', 'dbt property. Do not resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
166
|
+
.option('--favor-state', 'dbt property. When deferring, prioritize node definitions from the --state directory.', undefined)
|
|
165
167
|
.option('--no-warehouse-credentials', 'Compile without any warehouse credentials. Skips dbt compile + warehouse catalog')
|
|
166
168
|
.option('--disable-timestamp-conversion [true|false]', 'Disable timestamp conversion to UTC for Snowflake warehouses. Only use this if your timestamp values are already in UTC.', parseDisableTimestampConversionOption, false)
|
|
167
169
|
.action(compile_1.compileHandler);
|
|
@@ -177,6 +179,7 @@ commander_1.program
|
|
|
177
179
|
.option('--vars <vars>')
|
|
178
180
|
.option('--defer', 'dbt property. Resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
179
181
|
.option('--no-defer', 'dbt property. Do not resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
182
|
+
.option('--favor-state', 'dbt property. When deferring, prioritize node definitions from the --state directory.', undefined)
|
|
180
183
|
.option('--threads <number>')
|
|
181
184
|
.option('--no-version-check')
|
|
182
185
|
.option('-s, --select <models...>', 'specify models (accepts dbt selection syntax)')
|
|
@@ -209,6 +212,7 @@ commander_1.program
|
|
|
209
212
|
.option('--vars <vars>')
|
|
210
213
|
.option('--defer', 'dbt property. Resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
211
214
|
.option('--no-defer', 'dbt property. Do not resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
215
|
+
.option('--favor-state', 'dbt property. When deferring, prioritize node definitions from the --state directory.', undefined)
|
|
212
216
|
.option('--threads <number>')
|
|
213
217
|
.option('--no-version-check')
|
|
214
218
|
.option('-s, --select <models...>', 'specify models (accepts dbt selection syntax)')
|
|
@@ -274,6 +278,9 @@ commander_1.program
|
|
|
274
278
|
.option('--selector <selector_name>')
|
|
275
279
|
.option('--state <state>')
|
|
276
280
|
.option('--full-refresh')
|
|
281
|
+
.option('--defer', 'dbt property. Resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
282
|
+
.option('--no-defer', 'dbt property. Do not resolve unselected nodes by deferring to the manifest within the --state directory.', undefined)
|
|
283
|
+
.option('--favor-state', 'dbt property. When deferring, prioritize node definitions from the --state directory.', undefined)
|
|
277
284
|
.option('--verbose', undefined, false)
|
|
278
285
|
.option('--create [project_name]', "Create a new project. If a project name is not provided, you'll be prompted for one on creation.", undefined)
|
|
279
286
|
.option('--ignore-errors', 'Allows deploy with errors on compile', false)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2242.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"unique-names-generator": "^4.7.1",
|
|
39
39
|
"uuid": "^11.0.3",
|
|
40
40
|
"yaml": "^2.7.0",
|
|
41
|
-
"@lightdash/
|
|
42
|
-
"@lightdash/
|
|
41
|
+
"@lightdash/warehouses": "0.2242.0",
|
|
42
|
+
"@lightdash/common": "0.2242.0"
|
|
43
43
|
},
|
|
44
44
|
"description": "Lightdash CLI tool",
|
|
45
45
|
"devDependencies": {
|