@lightdash/cli 1.18.0 → 1.19.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/dist/.tsbuildinfo +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/env.js +1 -1
- package/dist/handlers/download.js +3 -3
- package/package.json +5 -5
package/dist/env.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const NODE_VERSION: {
|
|
2
2
|
major: number;
|
|
3
3
|
};
|
|
4
|
-
export declare const OPTIMIZED_NODE_VERSION =
|
|
4
|
+
export declare const OPTIMIZED_NODE_VERSION = 24;
|
|
5
5
|
export declare const CLI_VERSION: string;
|
|
6
6
|
export declare const DEFAULT_DBT_PROJECT_DIR: string;
|
|
7
7
|
export declare const DEFAULT_DBT_PROFILES_DIR: string;
|
package/dist/env.js
CHANGED
|
@@ -6,7 +6,7 @@ const parse_node_version_1 = tslib_1.__importDefault(require("parse-node-version
|
|
|
6
6
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
7
|
const profile_1 = require("./dbt/profile");
|
|
8
8
|
exports.NODE_VERSION = { major: (0, parse_node_version_1.default)(process.version).major };
|
|
9
|
-
exports.OPTIMIZED_NODE_VERSION =
|
|
9
|
+
exports.OPTIMIZED_NODE_VERSION = 24;
|
|
10
10
|
exports.CLI_VERSION = package_json_1.default.version;
|
|
11
11
|
exports.DEFAULT_DBT_PROJECT_DIR = process.env.DBT_PROJECT_DIR || '.';
|
|
12
12
|
exports.DEFAULT_DBT_PROFILES_DIR = (0, profile_1.findDbtDefaultProfile)();
|
|
@@ -198,9 +198,9 @@ const loadYamlFile = async (file, folder, metadata) => {
|
|
|
198
198
|
const readCodeFiles = async (folder, customPath) => {
|
|
199
199
|
const baseDir = (0, contentAsCodePaths_1.getDownloadFolder)(customPath);
|
|
200
200
|
(0, contentAsCodeOutput_1.logContentAsCodeDiscovery)(`Reading ${folder} from ${baseDir}`);
|
|
201
|
-
const [major
|
|
202
|
-
if (major <
|
|
203
|
-
throw new Error(`Node.js
|
|
201
|
+
const [major] = process.versions.node.split('.').map(Number);
|
|
202
|
+
if (major < 24) {
|
|
203
|
+
throw new Error(`Node.js v24.0.0 or later is required for this command (current: ${process.version}).`);
|
|
204
204
|
}
|
|
205
205
|
try {
|
|
206
206
|
const metadata = await (0, metadataFile_1.readMetadataFile)(baseDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Lightdash CLI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"columnify": "1.6.0",
|
|
29
29
|
"commander": "9.5.0",
|
|
30
30
|
"execa": "5.1.1",
|
|
31
|
-
"google-auth-library": "
|
|
31
|
+
"google-auth-library": "10.7.0",
|
|
32
32
|
"inquirer": "8.2.7",
|
|
33
33
|
"js-yaml": "4.3.0",
|
|
34
34
|
"lodash": "4.18.1",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"unique-names-generator": "4.7.1",
|
|
42
42
|
"uuid": "11.1.1",
|
|
43
43
|
"yaml": "2.8.3",
|
|
44
|
-
"@lightdash/common": "1.
|
|
45
|
-
"@lightdash/warehouses": "1.
|
|
44
|
+
"@lightdash/common": "1.19.0",
|
|
45
|
+
"@lightdash/warehouses": "1.19.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/inquirer": "8.2.4",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"postbuild": "copyfiles --all -u 5 \"../../sandboxes/data-apps/template/**/*\" dist/vendor/template && copyfiles --all -u 4 \"src/handlers/apps/authoring/**/*\" dist/vendor/authoring",
|
|
69
69
|
"build:fast": "tsc --build tsconfig.fast.json",
|
|
70
70
|
"bundle": "ncc build dist/index.js -o bundle -e @duckdb/node-api -e @duckdb/node-bindings -e @duckdb/node-bindings-darwin-arm64 -e @duckdb/node-bindings-darwin-x64 -e @duckdb/node-bindings-linux-arm64 -e @duckdb/node-bindings-linux-x64 -e @duckdb/node-bindings-win32-x64 && bash ./scripts/copy-bundle-assets.sh",
|
|
71
|
-
"build:binary": "DUCKDB_BINDINGS=node-bindings-darwin-x64,node-bindings-darwin-arm64 pnpm bundle && npx @yao-pkg/pkg bundle/index.js --config pkg.config.json --targets
|
|
71
|
+
"build:binary": "DUCKDB_BINDINGS=node-bindings-darwin-x64,node-bindings-darwin-arm64 pnpm bundle && npx @yao-pkg/pkg bundle/index.js --config pkg.config.json --targets node24-macos-x64,node24-macos-arm64 --output bin/lightdash --compress Brotli",
|
|
72
72
|
"typecheck": "tsc6 --project tsconfig.json --noEmit",
|
|
73
73
|
"typecheck:fast": "tsc --project tsconfig.fast.json --noEmit",
|
|
74
74
|
"linter": "eslint -c .eslintrc.js --ignore-path ./../../.gitignore",
|