Skip to content

Commit

Permalink
feat(cli-utils): trigger script from bin alias
Browse files Browse the repository at this point in the history
Powerplex authored and andresin87 committed Feb 14, 2023

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent b9a8e4f commit 1832840
Showing 4 changed files with 17 additions and 4 deletions.
12 changes: 9 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
"@spark-ui/theme-utils-node": "*"
},
"devDependencies": {
"@spark-ui/cli-utils": "*",
"@babel/core": "^7.20.12",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
@@ -102,6 +103,9 @@
"packages/hooks/*",
"packages/utils/*"
],
"namespaces": [
"spark-ui"
],
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
2 changes: 2 additions & 0 deletions packages/utils/cli/bin/spark-generate.mjs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import { fileURLToPath } from 'node:url'
import { program } from 'commander'
import glob from 'glob'
3 changes: 2 additions & 1 deletion packages/utils/cli/package.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,8 @@
"access": "public"
},
"bin": {
"spark": "./bin/spark.mjs"
"spark": "./bin/spark.mjs",
"spark-generate": "./bin/spark-generate.mjs"
},
"type": "module",
"devDependencies": {

0 comments on commit 1832840

Please sign in to comment.