mirror of
https://github.com/coderaiser/minify.git
synced 2025-12-05 18:55:58 -06:00
chore: lint
This commit is contained in:
5
.github/workflows/node.js.yml
vendored
5
.github/workflows/node.js.yml
vendored
@@ -30,9 +30,8 @@ jobs:
|
||||
run: bun i --no-save
|
||||
- name: Lint
|
||||
run: npm run fix:lint
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Install Rust
|
||||
run: rustup update
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
|
||||
5
.github/workflows/nodejs-pr.yml
vendored
5
.github/workflows/nodejs-pr.yml
vendored
@@ -23,9 +23,8 @@ jobs:
|
||||
run: bun i --no-save
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Install Rust
|
||||
run: rustup update
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"try-to-catch": "https://esm.sh/try-to-catch"
|
||||
}
|
||||
"imports": {
|
||||
"try-to-catch": "https://esm.sh/try-to-catch"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import {promisify} from 'node:util';
|
||||
import {
|
||||
promisify,
|
||||
TextDecoder,
|
||||
} from 'node:util';
|
||||
|
||||
export const readStd = async (text) => {
|
||||
import process from 'node:process';
|
||||
|
||||
export const readStd = async () => {
|
||||
if (globalThis.Deno)
|
||||
return await denoReadStd();
|
||||
|
||||
@@ -33,12 +38,8 @@ export const denoReadStd = async () => {
|
||||
const decoder = new TextDecoder();
|
||||
|
||||
for await (const chunk of Deno.stdin.readable) {
|
||||
console.log(chunk);
|
||||
chunks += decoder.decode(chunk);
|
||||
chunks += decoder.decode(chunk);
|
||||
}
|
||||
|
||||
console.log('yyy');
|
||||
|
||||
return chunks;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user