@holistics/cli-core 0.4.1 → 0.5.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 +13 -2
- package/package.json +8 -7
- package/dist/commands.js +0 -3310
- package/dist/commands.umd.cjs +0 -2647
- package/dist/src/cli.d.ts +0 -1
- package/dist/src/commands/aml/common.d.ts +0 -3
- package/dist/src/commands/aml/compile.d.ts +0 -5
- package/dist/src/commands/aml/query.d.ts +0 -3
- package/dist/src/commands/aml/validate.d.ts +0 -3
- package/dist/src/commands/aml.d.ts +0 -3
- package/dist/src/commands/auth.d.ts +0 -3
- package/dist/src/commands/dbt/upload.d.ts +0 -6
- package/dist/src/commands/dbt.d.ts +0 -3
- package/dist/src/commands.d.ts +0 -2
- package/dist/src/holistics/auth_api_client.d.ts +0 -1
- package/dist/src/holistics/helpers/auth_info.d.ts +0 -4
- package/dist/src/holistics/helpers/http_request.d.ts +0 -5
- package/dist/src/utils.d.ts +0 -1
package/README.md
CHANGED
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
The Holistics CLI contains 2 parts:
|
|
4
4
|
- The CLI app (https://github.com/holistics/holistics-cli): an open source repo that handles the downloading/upadting/installing of the CLI app. See its Readme for more details.
|
|
5
|
-
- The CLI core
|
|
5
|
+
- The CLI core: the public package hosted on NPM registry that contains the core logic of the CLI app. Note that the source code is private but the compiled code is public.
|
|
6
|
+
|
|
6
7
|
|
|
7
8
|
The CLI core is using our private packages (such as aml, aml-std, etc...), so to expose these logic to the CLI app:
|
|
8
9
|
1. We use `bun` to build all the dependencies into a single giant `commands.js` file.
|
|
9
10
|
2. Publish this file to public npm registry (https://www.npmjs.com/package/@holistics/cli-core)
|
|
10
|
-
3. The CLI app **directly download and use** the `commands.js` file from the npm registry.
|
|
11
|
+
3. The CLI app **directly download and use** the `commands.js` file from the npm registry.
|
|
12
|
+
|
|
13
|
+
The CLI core can also be installed as a package from NPM registry with the name `@holistics/cli-core`.
|
|
14
|
+
This is possible because we already compiled the code into a single `commands.js` file, and removed all the private dependencies (check `bun_build.sh`)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Local build
|
|
18
|
+
- Install `bun` at the version specified in `.bun-version` file.
|
|
19
|
+
- Run `bun_build.sh`
|
|
20
|
+
|
|
21
|
+
If `bun` is not installed at the local, the build will be skipped.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holistics/cli-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -15,28 +15,29 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/js-yaml": "^4.0.5",
|
|
18
|
-
"tsx": "^4.
|
|
18
|
+
"tsx": "^4.20.6",
|
|
19
19
|
"typescript": "^5.7.3",
|
|
20
|
-
"vite": "^5.4.
|
|
20
|
+
"vite": "^5.4.20",
|
|
21
21
|
"vitest": "^2.1.9",
|
|
22
22
|
"@vitest/coverage-v8": "^2.1.9",
|
|
23
|
-
"@holistics/configs": "
|
|
23
|
+
"@holistics/configs": "1.1.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@commander-js/extra-typings": "^13.1.0",
|
|
27
|
-
"@holistics/aml": "
|
|
27
|
+
"@holistics/aml": "^6.0.0",
|
|
28
28
|
"axios": "^1.7.7",
|
|
29
29
|
"commander": "13.1.0",
|
|
30
30
|
"fast-glob": "^3.3.3",
|
|
31
31
|
"form-data": "^4.0.2",
|
|
32
32
|
"glob": "^11.0.1",
|
|
33
33
|
"js-yaml": "^4.1.0",
|
|
34
|
-
"@holistics/aml-std": "
|
|
34
|
+
"@holistics/aml-std": "5.3.2"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "tsx src/cli.ts",
|
|
38
38
|
"test": "vitest --run",
|
|
39
|
-
"
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"build": "tsc --noEmit && sh bun_build.sh",
|
|
40
41
|
"coverage": "vitest --run --coverage"
|
|
41
42
|
}
|
|
42
43
|
}
|