Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0b80dbf999 | |||
ce2208f1b2 | |||
44dd2a659a | |||
c2b3d7dc3c |
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -48,6 +48,6 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
uses: ztimson/actions/.github/workflows/docker.yaml@develop
|
uses: ztimson/actions/.github/workflows/docker.yaml@develop
|
||||||
with:
|
with:
|
||||||
name: ztimson/css-utils
|
name: ztimson/node-utils
|
||||||
repository: ${{github.server_url}}/${{github.repository}}.git
|
repository: ${{github.server_url}}/${{github.repository}}.git
|
||||||
pass: ${{secrets.DEPLOY_TOKEN}}
|
pass: ${{secrets.DEPLOY_TOKEN}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/node-utils",
|
"name": "@ztimson/node-utils",
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"description": "CSS Utility Classes",
|
"description": "CSS Utility Classes",
|
||||||
"author": "ztimson",
|
"author": "ztimson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -3,7 +3,7 @@ import {exec, execSync} from 'child_process';
|
|||||||
export function $(str: TemplateStringsArray, ...args: string[]): Promise<string> {
|
export function $(str: TemplateStringsArray, ...args: string[]): Promise<string> {
|
||||||
let cmd = str.reduce((acc, part, i) => acc + part + (args[i] || ''), '');
|
let cmd = str.reduce((acc, part, i) => acc + part + (args[i] || ''), '');
|
||||||
return new Promise((res, rej) => exec(cmd, (err, stdout, stderr) => {
|
return new Promise((res, rej) => exec(cmd, (err, stdout, stderr) => {
|
||||||
if(err || stderr) return rej(err || stderr);
|
if(err) return rej(stderr || err);
|
||||||
return res(stdout);
|
return res(stdout);
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import readline from 'node:readline';
|
import readline from 'readline';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve input from the CLI
|
* Retrieve input from the CLI
|
||||||
|
Reference in New Issue
Block a user