@malloydata/cli 0.0.40
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/LICENSE +7 -0
- package/README.md +17 -0
- package/dist/cli.js +2653 -0
- package/dist/index.js +3 -0
- package/dist/post-install.js +9 -0
- package/dist/third_party_notices.txt +52188 -0
- package/package.json +99 -0
- package/scripts/malloy-packages.ts +13 -0
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@malloydata/cli",
|
|
3
|
+
"version": "0.0.40",
|
|
4
|
+
"description": "Malloy CLI",
|
|
5
|
+
"bin": {
|
|
6
|
+
"malloy-cli": "dist/index.js",
|
|
7
|
+
"malloy-packages": "./scripts/malloy-packages.ts"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**",
|
|
11
|
+
"scripts/malloy-packages.ts"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=10"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"lint": "tsc --noEmit && gts lint",
|
|
18
|
+
"test": "NODE_ENV=test jest --projects jest.config.js --runInBand",
|
|
19
|
+
"test-silent": "NODE_ENV=test JEST_SILENT_REPORTER_SHOW_PATHS=true jest --projects jest.config.js --runInBand --reporters jest-silent-reporter",
|
|
20
|
+
"test-e2e": "npm run package-npm test > /dev/null 2>&1 && ts-node test/.build/npmBin/post-install.js > /dev/null 2>&1 && NODE_ENV=test jest --projects=jest-e2e.config.js --runInBand",
|
|
21
|
+
"test-silent-e2e": "npm run package-npm test > /dev/null 2>&1 && ts-node test/.build/npmBin/post-install.js > /dev/null 2>&1 && NODE_ENV=test JEST_SILENT_REPORTER_SHOW_PATHS=true jest --projects=jest-e2e.config.js --runInBand --reporters jest-silent-reporter",
|
|
22
|
+
"build": "ts-node scripts/build",
|
|
23
|
+
"build-action": "esbuild --platform=node --bundle ./.github/actions/permission-check/lib/index.ts --outfile=./.github/actions/permission-check/dist/index.js",
|
|
24
|
+
"build-action-dev": "npm run build-action -- --watch",
|
|
25
|
+
"cli": "npx ts-node ./dist/cli.js",
|
|
26
|
+
"watch": "ts-node scripts/build watch",
|
|
27
|
+
"package": "ts-node scripts/package",
|
|
28
|
+
"package-npm": "ts-node scripts/package-npm",
|
|
29
|
+
"prepublishOnly": "npm version -git-tag-version=false patch && ts-node scripts/package-npm",
|
|
30
|
+
"postinstall": "node -e \"try{require('./dist/post-install')} catch {}\"",
|
|
31
|
+
"postpack": "npm run build",
|
|
32
|
+
"malloy-update-next": "npm install --no-fund --no-audit --save-exact $(./scripts/malloy-packages.ts next)",
|
|
33
|
+
"malloy-update": "npm install --no-fund --no-audit --save-exact $(./scripts/malloy-packages.ts latest)",
|
|
34
|
+
"malloy-link": "npm --no-fund --no-audit link $(./scripts/malloy-packages.ts)",
|
|
35
|
+
"malloy-unlink": "npm --no-fund --no-save --no-audit unlink $(./scripts/malloy-packages.ts) && npm --no-fund --no-audit install --force"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/malloydata/malloy-cli.git"
|
|
40
|
+
},
|
|
41
|
+
"author": "Malloy",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/malloydata/malloy-cli/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/malloydata/malloy-cli#readme",
|
|
47
|
+
"builtIntoPackageDependencies": [
|
|
48
|
+
"@malloydata/db-bigquery",
|
|
49
|
+
"@malloydata/db-duckdb",
|
|
50
|
+
"@malloydata/db-postgres",
|
|
51
|
+
"@malloydata/db-snowflake",
|
|
52
|
+
"@malloydata/db-presto",
|
|
53
|
+
"@malloydata/db-trino",
|
|
54
|
+
"@malloydata/malloy",
|
|
55
|
+
"@malloydata/malloy-sql",
|
|
56
|
+
"chalk",
|
|
57
|
+
"commander",
|
|
58
|
+
"logform",
|
|
59
|
+
"winston"
|
|
60
|
+
],
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@actions/core": "^1.11.1",
|
|
63
|
+
"@actions/github": "^6.0.0",
|
|
64
|
+
"@commander-js/extra-typings": "^12.1.0",
|
|
65
|
+
"@malloydata/db-bigquery": "0.0.235",
|
|
66
|
+
"@malloydata/db-duckdb": "0.0.235",
|
|
67
|
+
"@malloydata/db-postgres": "0.0.235",
|
|
68
|
+
"@malloydata/db-snowflake": "0.0.235",
|
|
69
|
+
"@malloydata/db-trino": "0.0.235",
|
|
70
|
+
"@malloydata/malloy": "0.0.235",
|
|
71
|
+
"@malloydata/malloy-sql": "0.0.235",
|
|
72
|
+
"@types/jest": "^29.2.5",
|
|
73
|
+
"@types/node": "^14.11.2",
|
|
74
|
+
"@types/node-fetch": "^2.6.12",
|
|
75
|
+
"@types/tar-stream": "^3.1.3",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
|
77
|
+
"@typescript-eslint/parser": "^5.48.2",
|
|
78
|
+
"ajv": "^8.12.0",
|
|
79
|
+
"axios": "^1.4.0",
|
|
80
|
+
"chalk": "^4.0.0",
|
|
81
|
+
"commander": "^12.1.0",
|
|
82
|
+
"csv-stringify": "^6.4.0",
|
|
83
|
+
"esbuild": "0.25.0",
|
|
84
|
+
"eslint": "^8.32.0",
|
|
85
|
+
"eslint-config-prettier": "^8.3.0",
|
|
86
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
87
|
+
"gts": "^3.1.1",
|
|
88
|
+
"jest": "^29.3.1",
|
|
89
|
+
"jest-silent-reporter": "^0.5.0",
|
|
90
|
+
"logform": "^2.5.1",
|
|
91
|
+
"node-fetch": "^2.6.1",
|
|
92
|
+
"pkg": "^5.8.1",
|
|
93
|
+
"tar-stream": "^3.1.4",
|
|
94
|
+
"ts-jest": "^29.1.0",
|
|
95
|
+
"ts-node": "^10.9.1",
|
|
96
|
+
"typescript": "^4.8.4",
|
|
97
|
+
"winston": "^3.9.0"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env ts-node
|
|
2
|
+
import packageJson from '../package.json';
|
|
3
|
+
|
|
4
|
+
let malloyPackages = Object.keys(packageJson.devDependencies).filter(name =>
|
|
5
|
+
name.startsWith('@malloy')
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
if (process.argv.length === 3) {
|
|
9
|
+
malloyPackages = malloyPackages.map(
|
|
10
|
+
packageJson => `${packageJson}@${process.argv[2]}`
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
console.log(malloyPackages.join(' '));
|