13 Commits
1.0.2 ... 1.0.6

Author SHA1 Message Date
cd5585afea Better stdout capturing
Some checks failed
Publish Library / Build NPM Project (push) Successful in 12s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Failing after 4s
2025-12-27 15:10:04 -05:00
b3138b437e Better stdout capturing
Some checks failed
Publish Library / Build NPM Project (push) Successful in 14s
Publish Library / Publish CDN & Docs (push) Failing after 5s
Publish Library / Tag Version (push) Successful in 8s
2025-12-27 15:01:46 -05:00
c6259cfa62 Better stdout capturing
Some checks failed
Publish Library / Tag Version (push) Has been cancelled
Publish Library / Publish CDN & Docs (push) Has been cancelled
Publish Library / Build NPM Project (push) Has been cancelled
2025-12-27 15:01:19 -05:00
8ea2b560a5 Removed vite, we dont need it
Some checks failed
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Publish CDN & Docs (push) Failing after 5s
Publish Library / Tag Version (push) Successful in 7s
2025-12-27 14:45:58 -05:00
60aef4cc01 Fixing vite
Some checks failed
Publish Library / Build NPM Project (push) Successful in 21s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Failing after 4s
2025-12-27 14:40:18 -05:00
692752fb30 Fixed double import
Some checks failed
Publish Library / Build NPM Project (push) Failing after 17s
Publish Library / Publish CDN & Docs (push) Has been skipped
Publish Library / Tag Version (push) Has been skipped
2025-12-27 14:37:54 -05:00
a5e940b003 Fixed exec helper return
Some checks failed
Publish Library / Build NPM Project (push) Failing after 18s
Publish Library / Publish CDN & Docs (push) Has been skipped
Publish Library / Tag Version (push) Has been skipped
2025-12-27 14:36:06 -05:00
e9ccd5ffb0 updated publish steps
Some checks failed
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Failing after 5s
2025-08-10 12:49:52 -04:00
c57978c228 updated publish steps
All checks were successful
Publish Library / Build NPM Project (push) Successful in 14s
Publish Library / Publish CDN & Docs (push) Successful in 3s
Publish Library / Tag Version (push) Successful in 6s
2025-08-10 12:48:37 -04:00
f0aa4b92c6 updated publish steps
Some checks failed
Publish Library / Build NPM Project (push) Has started running
Publish Library / Tag Version (push) Has been cancelled
Publish Library / Publish CDN & Docs (push) Has been cancelled
2025-08-10 12:48:24 -04:00
503efc10fc Bump: 1.0.4
Some checks failed
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Failing after 4s
Publish Library / Build NPM Project (push) Successful in 16s
2025-08-10 12:43:44 -04:00
0b80dbf999 Merge remote-tracking branch 'origin/master'
Some checks failed
Publish Library / Publish CDN & Docs (push) Has been cancelled
Publish Library / Build NPM Project (push) Successful in 26s
Publish Library / Tag Version (push) Has been cancelled
2025-08-10 12:43:10 -04:00
ce2208f1b2 Better '$' error handling 2025-08-10 12:43:03 -04:00
7 changed files with 240 additions and 1963 deletions

View File

@@ -16,15 +16,19 @@ jobs:
- name: Install & Build - name: Install & Build
run: npm i && npm run build run: npm i && npm run build
- name: Upload to Registry - name: Publish Library
uses: ztimson/actions/npm/publish@develop run: |
if [ "${{github.ref_name}}" = "master" ]; then
REGISTRY="${{github.server_url}}/api/packages/${{github.repository_owner}}/npm/"
npm set registry "$REGISTRY"
npm set $(echo $REGISTRY | sed s%http:%% | sed s%https:%% ):_authToken "${{secrets.DEPLOY_TOKEN}}"
npm publish || echo "Failed to publish"
- name: Upload to NPM REGISTRY="https://registry.npmjs.org/"
uses: ztimson/actions/npm/publish@develop npm set registry "$REGISTRY"
with: npm set $(echo $REGISTRY | sed s%http:%% | sed s%https:%% ):_authToken "${{secrets.NPM_TOKEN}}"
owner: ztimson npm publish || echo "Failed to publish"
registry: https://registry.npmjs.org/ fi
token: ${{secrets.NPM_TOKEN}}
tag: tag:
name: Tag Version name: Tag Version
needs: build needs: build

2114
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "@ztimson/node-utils", "name": "@ztimson/node-utils",
"version": "1.0.2", "version": "1.0.6",
"description": "CSS Utility Classes", "description": "CSS Utility Classes",
"author": "ztimson", "author": "ztimson",
"license": "MIT", "license": "MIT",
@@ -10,27 +10,25 @@
"type": "git", "type": "git",
"url": "git.zakscode.com:ztimson/node-utils" "url": "git.zakscode.com:ztimson/node-utils"
}, },
"main": "./dist/index.cjs", "type": "module",
"module": "./dist/index.mjs", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./dist/index.mjs", "default": "./dist/index.js"
"require": "./dist/index.cjs"
} }
}, },
"scripts": { "scripts": {
"build": "npx tsc && npx vite build", "build": "tsc",
"docs": "typedoc --cleanOutputDir false --out ./docs --entryPoints src/**/*.ts --readme none", "docs": "typedoc --cleanOutputDir false --out ./docs --entryPoints src/**/*.ts --readme none",
"watch": "npx vite build --watch" "watch": "tsc --watch"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.0.0", "@types/node": "^24.10.4",
"tsx": "^4.21.0",
"typedoc": "^0.28.5", "typedoc": "^0.28.5",
"typescript": "^5.8.3", "typescript": "^5.9.3"
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.4"
}, },
"files": [ "files": [
"dist" "dist"

View File

@@ -1,10 +1,10 @@
import {exec, execSync} from 'child_process'; import {exec, execSync} from 'node: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?.trim() || stderr?.trim());
})) }))
} }

View File

@@ -1,2 +1,2 @@
export * from './cli'; export * from './cli.js';
export * from './input'; export * from './input.js';

View File

@@ -1,20 +1,18 @@
{ {
"include": ["src"], "include": ["src"],
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ES2022",
"useDefineForClassFields": true,
"module": "NodeNext", "module": "NodeNext",
"lib": ["ESNext"], "lib": ["ES2022"],
"skipLibCheck": true, "skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true,
"declaration": true, "declaration": true,
"noEmit": true, "declarationMap": true,
"outDir": "./dist",
/* Linting */ "rootDir": "./src",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true "strict": true
} }
} }

View File

@@ -1,23 +0,0 @@
import {resolve} from 'path';
import {defineConfig} from 'vite';
import dts from 'vite-plugin-dts';
export default defineConfig({
build: {
lib: {
entry: resolve(process.cwd(), 'src/index.ts'),
name: 'node-utils',
fileName: (format: string) => format === 'es' ? 'index.mjs' : 'index.cjs'
},
rollupOptions: {
external: [
'child_process',
'readline'
],
},
emptyOutDir: true,
minify: false,
sourcemap: true
},
plugins: [dts()],
});