From 611805b3bdf18d8fea6ea5bbe15be2fb5808b6e3 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sat, 8 Oct 2022 12:22:56 +0000 Subject: [PATCH] feat(pkg): snobuild v3 --- .gitpod.yml | 6 + package.json | 2 +- packages/chrome-dev/package.json | 7 +- packages/jsx-rename/package.json | 19 +- packages/junction-move/package.json | 27 +- packages/md-aggregate/package.json | 25 +- packages/monopkgs/package.json | 12 +- packages/monopkgs/src/cli.ts | 2 +- packages/monopkgs/src/index.ts | 4 +- packages/my-version/package.json | 28 +- packages/objtranspose/package.json | 23 +- packages/outer-join-by/package.json | 20 +- packages/piserve/package.json | 10 +- packages/schcal/package.json | 25 +- packages/sno-mongo-ku/package.json | 2 +- packages/sno-utils/package.json | 4 +- packages/snobuild/package.json | 14 +- packages/snobuild/src/index.ts | 10 +- packages/snocommit/package.json | 37 +++ packages/snocommit/postbuild.ts | 6 + packages/snocommit/src/cli.ts | 18 ++ packages/snocommit/src/index.ts | 19 ++ packages/snofa/package.json | 12 +- packages/snogwt/package.json | 23 +- packages/snoio/CHANGELOG.md | 12 - packages/snoio/README.md | 8 - packages/snoio/package.json | 24 -- packages/snoio/src/index.ts | 27 -- packages/snorun/package.json | 2 +- packages/snorun/src/index.ts | 1 + packages/snosay/package.json | 28 +- packages/snotran/package.json | 23 +- pnpm-lock.yaml | 451 ++++++++-------------------- 33 files changed, 349 insertions(+), 582 deletions(-) create mode 100644 .gitpod.yml create mode 100644 packages/snocommit/package.json create mode 100644 packages/snocommit/postbuild.ts create mode 100644 packages/snocommit/src/cli.ts create mode 100644 packages/snocommit/src/index.ts delete mode 100644 packages/snoio/CHANGELOG.md delete mode 100644 packages/snoio/README.md delete mode 100644 packages/snoio/package.json delete mode 100644 packages/snoio/src/index.ts diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..1a96f67d --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,6 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: pnpm install && pnpm run build diff --git a/package.json b/package.json index 71bb4a8f..1cc647ae 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "license": "GPLv3", "author": "Snowstar Miao ", - "_bak_npm_workspaces": [ + "workspaces": [ "packages/**" ], "scripts": { diff --git a/packages/chrome-dev/package.json b/packages/chrome-dev/package.json index f5c7b00d..400039e2 100644 --- a/packages/chrome-dev/package.json +++ b/packages/chrome-dev/package.json @@ -32,20 +32,19 @@ "lib" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build" }, "dependencies": { - "arg": "^5.0.1", "dotenv": "^14.2.0", "puppeteer": "^14.2.1", "yargs": "^17.5.1" }, "devDependencies": { - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" }, "publishConfig": { "access": "public" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/jsx-rename/package.json b/packages/jsx-rename/package.json index 0791be18..b9a261e3 100644 --- a/packages/jsx-rename/package.json +++ b/packages/jsx-rename/package.json @@ -16,22 +16,9 @@ "repository": "https://github.com/snomiao/js/tree/master/packages/jsx-rename", "license": "GPLv3", "author": "Snowstar Miao ", - "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "lib/index.js", - "bin": { - "jsx-rename": "lib/cli.js" - }, - "files": [ - "lib" - ], "scripts": { - "_build": "snobuild --lib", - "_prepack": "npm run build" + "build": "snobuild", + "prepack": "npm run build" }, "dependencies": { "eslint": "8.2.0", @@ -41,6 +28,6 @@ }, "devDependencies": { "@types/yargs": "^17.0.10", - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" } } diff --git a/packages/junction-move/package.json b/packages/junction-move/package.json index 521056a4..03936678 100644 --- a/packages/junction-move/package.json +++ b/packages/junction-move/package.json @@ -18,25 +18,18 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "junction-move": "lib/cli.js" - }, - "directories": { - "lib": "lib" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build" }, "dependencies": { @@ -45,6 +38,6 @@ }, "devDependencies": { "@types/yargs": "^17.0.10", - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" } -} +} \ No newline at end of file diff --git a/packages/md-aggregate/package.json b/packages/md-aggregate/package.json index 94d2dffc..bc51be9b 100644 --- a/packages/md-aggregate/package.json +++ b/packages/md-aggregate/package.json @@ -19,23 +19,18 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "md-aggregate": "lib/cli.js" - }, - "directories": { - "lib": "lib" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build", "postversion": "prettier -w CHANGELOG.md && npm run build && npx md-aggregate README.md CHANGELOG.md -w" }, @@ -49,10 +44,10 @@ "@types/node": "^18.7.18", "@types/yargs": "^17.0.10", "prettier": "^2.6.2", - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" }, "publishConfig": { "access": "public" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/monopkgs/package.json b/packages/monopkgs/package.json index 62b00210..e07c46b6 100644 --- a/packages/monopkgs/package.json +++ b/packages/monopkgs/package.json @@ -16,6 +16,13 @@ "license": "GPLv3", "author": "Snowstar Miao ", "type": "module", + "exports": { + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" + }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", "bin": { "monopkgs": "lib/cli.js" }, @@ -32,7 +39,8 @@ "yargs": "^17.5.1" }, "devDependencies": { - "@types/yargs": "^17.0.10" + "@types/yargs": "^17.0.10", + "snobuild": "^3.2.0" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/monopkgs/src/cli.ts b/packages/monopkgs/src/cli.ts index 8f9e9d51..21e32368 100644 --- a/packages/monopkgs/src/cli.ts +++ b/packages/monopkgs/src/cli.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import yargs from "yargs"; import { hideBin } from "yargs/helpers"; -import monopkgs from "."; +import monopkgs from "./index"; (async function () { const argv = await yargs(hideBin(process.argv)) .scriptName("monopkgs") diff --git a/packages/monopkgs/src/index.ts b/packages/monopkgs/src/index.ts index 9cf0c7d8..10a47d9c 100644 --- a/packages/monopkgs/src/index.ts +++ b/packages/monopkgs/src/index.ts @@ -4,7 +4,7 @@ import { globby } from "globby"; import path, { relative, resolve } from "path"; import { promisify } from "util"; -export default async function monopkgs({} = {}) { +export default async function monopkgs({ } = {}) { const rootPkg = resolve("./package.json"); const root = JSON.parse(await readFile(rootPkg, "utf8")); const rootDir = path.parse(rootPkg).dir; @@ -21,7 +21,7 @@ export default async function monopkgs({} = {}) { const pkgs = await globby("packages/**/package.json", { gitignore: true }); // master will redirect to main rather than 404 if main is not existed in github. - const currentBranch = await (await promisify(exec)("git branch --show-current"))?.stdout.trim(); + const currentBranch = (await promisify(exec)("git branch --show-current"))?.stdout.trim(); const mainBranchName = currentBranch || "master"; const pkgParse = async (pkgPath) => { diff --git a/packages/my-version/package.json b/packages/my-version/package.json index fa672d91..726beef6 100644 --- a/packages/my-version/package.json +++ b/packages/my-version/package.json @@ -14,28 +14,24 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "my-version": "lib/cli.js" - }, - "directories": { - "lib": "lib" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build" }, "dependencies": { "read-pkg-up": "^9.1.0" + }, + "devDependencies": { + "snobuild": "^3.2.0" } -} +} \ No newline at end of file diff --git a/packages/objtranspose/package.json b/packages/objtranspose/package.json index 1ccd8074..4bdd84c0 100644 --- a/packages/objtranspose/package.json +++ b/packages/objtranspose/package.json @@ -22,30 +22,25 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "directories": { - "lib": "lib" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build && npm run test", "test": "mocha --require tsx src/**/*.test.ts" }, "devDependencies": { "@types/mocha": "^9.1.1", "mocha": "^10.0.0", - "snobuild": "^2.7.0", + "snobuild": "^3.2.0", "tsx": "^3.4.2" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/outer-join-by/package.json b/packages/outer-join-by/package.json index c963c7c5..22555109 100644 --- a/packages/outer-join-by/package.json +++ b/packages/outer-join-by/package.json @@ -16,19 +16,17 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build && npm run test", "test": "mocha --require tsx src/**/*.test.ts" }, @@ -38,8 +36,8 @@ "devDependencies": { "@types/mocha": "^9.1.1", "mocha": "^10.0.0", - "snobuild": "^2.7.0", + "snobuild": "^3.2.0", "tsx": "^3.4.2" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/piserve/package.json b/packages/piserve/package.json index 04722ea5..1357c03f 100644 --- a/packages/piserve/package.json +++ b/packages/piserve/package.json @@ -7,19 +7,20 @@ ], "license": "ISC", "author": "", + "type": "module", "exports": { "require": "./lib/index.cjs", "import": "./lib/index.js" }, - "bin": "lib/cli.js", "main": "lib/index.cjs", "module": "lib/index.js", + "types": "dist/index.d.ts", + "bin": "lib/cli.js", "files": [ "lib" ], - "type": "module", "scripts": { - "build": "snobuild --lib", + "build": "snobuild --node", "prepack": "npm run build", "test": "mocha --require tsx src/**/*.test.ts" }, @@ -36,6 +37,7 @@ "@types/mocha": "^9.1.1", "chai": "^4.3.6", "mocha": "^10.0.0", + "snobuild": "^3.2.0", "tsx": "^3.4.2" } -} +} \ No newline at end of file diff --git a/packages/schcal/package.json b/packages/schcal/package.json index a87c1e64..9f740693 100644 --- a/packages/schcal/package.json +++ b/packages/schcal/package.json @@ -18,23 +18,18 @@ "author": "snomiao@gmail.com", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "schcal": "lib/cli.js" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", - "build:patch": "npm version patch", + "build": "snobuild", "prepack": "npm run build", "start": "npx .", "test": "mocha --require tsx src/**/*.test.ts", @@ -73,7 +68,7 @@ "conventional-changelog-cli": "^2.1.1", "husky": "^5.1.3", "mocha": "^10.0.0", - "snobuild": "^2.7.0", + "snobuild": "^3.2.0", "tsx": "^3.4.2" } -} +} \ No newline at end of file diff --git a/packages/sno-mongo-ku/package.json b/packages/sno-mongo-ku/package.json index 4a67cb71..a0f9fa59 100644 --- a/packages/sno-mongo-ku/package.json +++ b/packages/sno-mongo-ku/package.json @@ -37,4 +37,4 @@ "snobuild": "^3.1.1" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/sno-utils/package.json b/packages/sno-utils/package.json index a78a5eb6..3c0211dc 100644 --- a/packages/sno-utils/package.json +++ b/packages/sno-utils/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "@types/node": "^14.14.22", - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/snobuild/package.json b/packages/snobuild/package.json index d2ef1b2f..8b84e9a2 100644 --- a/packages/snobuild/package.json +++ b/packages/snobuild/package.json @@ -24,9 +24,7 @@ "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "bin": { - "snobuild": "dist/cli.mjs" - }, + "bin": "dist/cli.mjs", "directories": { "dist": "dist" }, @@ -34,22 +32,22 @@ "dist" ], "scripts": { - "boot": "pnpx snobuild@2.2.1 --lib --externals=esbuild && npm pkg set bin=lib/cli.js && npm link && snobuild && npm pkg set bin=dist/cli.mjs && npm link", - "build": "snobuild", + "boot2": "pnpx snobuild@2.2.1 --lib --externals=esbuild && npm pkg set bin=lib/cli.js && npm link && snobuild && npm pkg set bin=dist/cli.mjs && npm link", + "boot3": "pnpx snobuild@3.2.0", + "build": "npm run boot2", "prepack": "npm run build && npm run test", "test": "snobuild --verbose && snobuild --verbose" }, "dependencies": { "globby": "^13.1.1", - "snorun": "^1.1.17", "sort-package-json": "^1.57.0", - "typescript": "^4.7.4", "yargs": "^17.5.1" }, "devDependencies": { "@types/node": "^18.8.0", "@types/yargs": "^17.0.10", - "esbuild": "^0.15.9" + "esbuild": "^0.15.9", + "typescript": "^4.7.4" }, "peerDependencies": { "esbuild": "^0.15.9" diff --git a/packages/snobuild/src/index.ts b/packages/snobuild/src/index.ts index e6b08287..ae4cb816 100644 --- a/packages/snobuild/src/index.ts +++ b/packages/snobuild/src/index.ts @@ -1,9 +1,11 @@ import esbuild, { BuildOptions, Format } from "esbuild"; import { readFile, stat, writeFile } from "fs/promises"; -import snorun from "snorun"; +import { exec } from "child_process"; import sortPackageJson from "sort-package-json"; import matrixExpand from "./matrixExpand"; +const snorun = (cmd: string) => new Promise(r => exec(cmd).on('exit', (code) => r(code == 0))) + export const depKeys = [ "dependencies", "devDependencies", @@ -44,7 +46,7 @@ export default async function snobuild({ legalComments = undefined as esbuild.BuildOptions["legalComments"], ..._esbuildOptions } = {}) { - const esbuildOptions = _esbuildOptions as esbuild.BuildOptions; + const esbuildOptions = {} || _esbuildOptions as esbuild.BuildOptions; // inputs const indexPath = "src/index.ts"; const cliPath = "src/cli.ts"; @@ -146,8 +148,8 @@ export default async function snobuild({ indexEntry, ].filter(Boolean); return tsconfigExisted - ? await snorun(["tsc", tscWatchFlag]) - : await snorun(["tsc", ...tscBuildOptions(indexEntry)]); + ? await snorun(["tsc", tscWatchFlag].join(' ')) + : await snorun(["tsc", ...tscBuildOptions(indexEntry)].join(' ')); } } export function Configs(...args: Parameters) { diff --git a/packages/snocommit/package.json b/packages/snocommit/package.json new file mode 100644 index 00000000..842e35bc --- /dev/null +++ b/packages/snocommit/package.json @@ -0,0 +1,37 @@ +{ + "name": "snocommit", + "version": "1.0.0", + "description": "", + "keywords": [], + "license": "ISC", + "author": "", + "type": "module", + "exports": { + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" + }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": { + "breaking": "dist/cli-breaking.mjs", + "docs": "dist/cli-docs.mjs", + "feat": "dist/cli-feat.mjs", + "fix": "dist/cli-fix.mjs", + "snocommit": "dist/cli.mjs" + }, + "files": [ + "dist" + ], + "scripts": { + "build": "snobuild && tsx postbuild.ts", + "prepack": "npm run build", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "devDependencies": { + "@types/yargs": "^17.0.10", + "snobuild": "^3.2.0", + "tsx": "^3.4.2", + "yargs": "^17.5.1" + } +} \ No newline at end of file diff --git a/packages/snocommit/postbuild.ts b/packages/snocommit/postbuild.ts new file mode 100644 index 00000000..51229b45 --- /dev/null +++ b/packages/snocommit/postbuild.ts @@ -0,0 +1,6 @@ +import fsp from 'fs/promises' +import { cmds } from './src/index' +await Promise.all(cmds.map(cmd => + fsp.copyFile('./dist/cli.mjs', './dist/cli-' + cmd + '.mjs').then(e => console.log('cli-' + cmd + ' copied')) +)) +console.log('post build done'); diff --git a/packages/snocommit/src/cli.ts b/packages/snocommit/src/cli.ts new file mode 100644 index 00000000..5505d528 --- /dev/null +++ b/packages/snocommit/src/cli.ts @@ -0,0 +1,18 @@ +#!/usr/bin/env node + +import { cmds } from './index' +const [node, js, ...rest] = process.argv +const cmdFromJS = cmds.find(e => e === js.match(/(?:cli-|bin\/)(.*?)(?:\.[mc]?[tj]s)?$/)?.[1]) +const { cmd, part, descs } = cmdFromJS ? + (() => { + const [part, ...descs] = rest + return { cmd: cmdFromJS, part, descs } + })() : + (() => { + const [cmd, part, ...descs] = rest + return { cmd, part, descs } + })() +const desc = descs.join(' ') +const valid = cmds.includes(cmd as any) +console.log(process.argv) +console.log([node, js, cmd, part, desc], { valid }) diff --git a/packages/snocommit/src/index.ts b/packages/snocommit/src/index.ts new file mode 100644 index 00000000..5c49a970 --- /dev/null +++ b/packages/snocommit/src/index.ts @@ -0,0 +1,19 @@ + +// style (part) description +// docs (part) description +// fix (part) description +// feat (part) description +// breaking (part) description +export const cmds = ["fix", 'style', 'feat', 'breaking', 'docs'] as const; +type CMD = typeof cmds[number] +type PART = '-' | '.' | string +const cmdActions: Record Promise | void> = { + breaking: () => null, + docs: () => null, + feat: () => null, + fix: () => null, + style: () => null +} +export default function snocommit(cmd: CMD, part: PART, desc: string) { + cmdActions[cmd] +} \ No newline at end of file diff --git a/packages/snofa/package.json b/packages/snofa/package.json index df6348a1..6daada1b 100644 --- a/packages/snofa/package.json +++ b/packages/snofa/package.json @@ -34,13 +34,13 @@ "prepack": "npm run build && npm run test", "test": "mocha --require tsx ./src/**/*.test.ts" }, + "dependencies": { + "ts-toolbelt": "^9.6.0" + }, "devDependencies": { "@types/mocha": "^9.1.1", "mocha": "^10.0.0", - "snobuild": "^3.1.1" + "snobuild": "^3.2.0" }, - "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c", - "dependencies": { - "ts-toolbelt": "^9.6.0" - } -} + "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" +} \ No newline at end of file diff --git a/packages/snogwt/package.json b/packages/snogwt/package.json index 70e20f08..4deedb60 100644 --- a/packages/snogwt/package.json +++ b/packages/snogwt/package.json @@ -20,21 +20,18 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - "import": "./lib/index.js", - "require": "./lib/index.cjs" - }, - "main": "snogwt.mjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "snogmer": "lib/snogmer.js", - "snogwt": "lib/cli.js" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", "files": [ - "lib" + "dist" ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build" }, "dependencies": { @@ -45,9 +42,9 @@ "devDependencies": { "@types/node": "^18.7.18", "@types/yargs": "^17.0.10", - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" }, "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/snoio/CHANGELOG.md b/packages/snoio/CHANGELOG.md deleted file mode 100644 index 966a521e..00000000 --- a/packages/snoio/CHANGELOG.md +++ /dev/null @@ -1,12 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## 1.0.2 (2022-09-22) - - -### Bug Fixes - -* drafting snoio utils ([e0ef971](https://github.com/snomiao/js/commit/e0ef971c4ad499f0fbd31856321f8cb3c3b56b4f)) -* **snoio:** empty ([403aff5](https://github.com/snomiao/js/commit/403aff5f7c6f6577d6f10eeec5625507d9b3a86d)) diff --git a/packages/snoio/README.md b/packages/snoio/README.md deleted file mode 100644 index d874a6de..00000000 --- a/packages/snoio/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# snoio - -## Feat - -Basic Encoding & Decoding (UTF8 and Base64) -FileSystem Control (Read, Write) -Stream Collect (Merge two world: Promises and Stream) - diff --git a/packages/snoio/package.json b/packages/snoio/package.json deleted file mode 100644 index bc97f05f..00000000 --- a/packages/snoio/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "snoio", - "version": "1.0.2", - "description": "io utils", - "keywords": [ - "node" - ], - "license": "ISC", - "author": "", - "type": "module", - "main": "lib/index.js", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "directories": { - "lib": "lib" - }, - "files": [ - "lib" - ], - "scripts": { - "build": "snobuild --lib", - "prepack": "npm run build" - } -} diff --git a/packages/snoio/src/index.ts b/packages/snoio/src/index.ts deleted file mode 100644 index 79831f67..00000000 --- a/packages/snoio/src/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { readFile, writeFile } from "fs/promises"; -/** - * - * @author: snomiao - */ -export default async function snoio(filename: string) { - console.log("hello"); - return { - fileTextRead: () => fileTextRead(filename), - fileRead: () => fileRead(filename), - fileWrite: (content: any) => fileWrite(filename, content), - }; -} - -export async function fileTextRead(filename: string) { - return ( - (await readFile(filename, { encoding: "utf8" })) - // handle utf8 with bom - ?.replace(/^\ufeff/, "") - ); -} -export async function fileRead(filename: string) { - return await readFile(filename); -} -export async function fileWrite(filename: string, content: any) { - return await writeFile(filename, content); -} diff --git a/packages/snorun/package.json b/packages/snorun/package.json index a4357d40..981f8ef5 100644 --- a/packages/snorun/package.json +++ b/packages/snorun/package.json @@ -37,4 +37,4 @@ "snobuild": "^3.1.1" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/snorun/src/index.ts b/packages/snorun/src/index.ts index a46e5c2d..da807437 100644 --- a/packages/snorun/src/index.ts +++ b/packages/snorun/src/index.ts @@ -47,3 +47,4 @@ function usePromise() { reject: (reason?: any) => void; }; } + diff --git a/packages/snosay/package.json b/packages/snosay/package.json index 789eebcb..261fc948 100644 --- a/packages/snosay/package.json +++ b/packages/snosay/package.json @@ -17,19 +17,18 @@ "author": "Snowstar Miao ", "type": "module", "exports": { - ".": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - } - }, - "main": "./lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "bin": { - "snosay": "lib/cli.js" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "bin": "dist/cli.mjs", + "files": [ + "dist" + ], "scripts": { - "build": "snobuild --lib", + "build": "snobuild", "prepack": "npm run build" }, "dependencies": { @@ -39,10 +38,7 @@ }, "devDependencies": { "@types/yargs": "^17.0.10", - "snobuild": "^2.7.0" - }, - "publishConfig": { - "access": "public" + "snobuild": "^3.2.0" }, "gitHead": "ca1c2db9974aa48a03d7695327ba73367192028c" -} +} \ No newline at end of file diff --git a/packages/snotran/package.json b/packages/snotran/package.json index e951c8f7..f9092027 100644 --- a/packages/snotran/package.json +++ b/packages/snotran/package.json @@ -9,22 +9,23 @@ "author": "snomiao ", "type": "module", "exports": { - "require": "./lib/index.cjs", - "import": "./lib/index.js" - }, - "main": "lib/index.cjs", - "module": "lib/index.js", - "types": "./lib/index.d.ts", - "directories": { - "lib": "lib" + "require": "./dist/index.cjs", + "import": "./dist/index.mjs" }, + "main": "dist/index.min.cjs", + "module": "dist/index.min.mjs", + "types": "dist/index.d.ts", + "files": [ + "dist" + ], "scripts": { - "build": "snobuild --lib --external=false" + "build": "snobuild", + "prepack": "npm run build" }, "dependencies": { "@snomiao/google-translate-api-browser": "^1.2.0" }, "devDependencies": { - "snobuild": "^2.7.0" + "snobuild": "^3.2.0" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e2b25cb6..8bf80ef7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,25 +40,23 @@ importers: packages/chrome-dev: specifiers: - arg: ^5.0.1 dotenv: ^14.2.0 puppeteer: ^14.2.1 - snobuild: ^2.7.0 + snobuild: ^3.2.0 yargs: ^17.5.1 dependencies: - arg: 5.0.2 dotenv: 14.3.2 puppeteer: 14.4.1 yargs: 17.5.1 devDependencies: - snobuild: 2.7.1 + snobuild: link:../snobuild packages/jsx-rename: specifiers: '@types/yargs': ^17.0.10 eslint: 8.2.0 eslint-plugin-react: 7.28.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 snorun: ^1.1.17 yargs: ^17.5.1 dependencies: @@ -68,12 +66,12 @@ importers: yargs: 17.5.1 devDependencies: '@types/yargs': 17.0.12 - snobuild: 2.7.1 + snobuild: link:../snobuild packages/junction-move: specifiers: '@types/yargs': ^17.0.10 - snobuild: ^2.7.0 + snobuild: ^3.2.0 snorun: ^1.1.17 yargs: ^17.5.1 dependencies: @@ -81,7 +79,7 @@ importers: yargs: 17.5.1 devDependencies: '@types/yargs': 17.0.12 - snobuild: 2.7.1 + snobuild: link:../snobuild packages/md-aggregate: specifiers: @@ -91,7 +89,7 @@ importers: escape-string-regexp: ^5.0.0 lodash-es: ^4.17.21 prettier: ^2.6.2 - snobuild: ^2.7.0 + snobuild: ^3.2.0 yargs: ^17.5.1 dependencies: escape-string-regexp: 5.0.0 @@ -102,13 +100,14 @@ importers: '@types/node': 18.7.18 '@types/yargs': 17.0.12 prettier: 2.7.1 - snobuild: 2.7.1 + snobuild: link:../snobuild packages/monopkgs: specifiers: '@types/yargs': ^17.0.10 arg: ^5.0.1 globby: ^13.1.1 + snobuild: ^3.2.0 yargs: ^17.5.1 dependencies: arg: 5.0.2 @@ -116,23 +115,27 @@ importers: yargs: 17.5.1 devDependencies: '@types/yargs': 17.0.12 + snobuild: link:../snobuild packages/my-version: specifiers: read-pkg-up: ^9.1.0 + snobuild: ^3.2.0 dependencies: read-pkg-up: 9.1.0 + devDependencies: + snobuild: link:../snobuild packages/objtranspose: specifiers: '@types/mocha': ^9.1.1 mocha: ^10.0.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 tsx: ^3.4.2 devDependencies: '@types/mocha': 9.1.1 mocha: 10.0.0 - snobuild: 2.7.1 + snobuild: link:../snobuild tsx: 3.9.0 packages/outer-join-by: @@ -140,14 +143,14 @@ importers: '@types/mocha': ^9.1.1 data-forge: ^1.9.5 mocha: ^10.0.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 tsx: ^3.4.2 dependencies: data-forge: 1.9.6 devDependencies: '@types/mocha': 9.1.1 mocha: 10.0.0 - snobuild: 2.7.1 + snobuild: link:../snobuild tsx: 3.9.0 packages/piserve: @@ -161,6 +164,7 @@ importers: chai: ^4.3.6 express: ^4.18.1 mocha: ^10.0.0 + snobuild: ^3.2.0 tsx: ^3.4.2 yargs: ^17.5.1 dependencies: @@ -175,6 +179,7 @@ importers: '@types/mocha': 9.1.1 chai: 4.3.6 mocha: 10.0.0 + snobuild: link:../snobuild tsx: 3.9.0 packages/schcal: @@ -202,7 +207,7 @@ importers: node-fetch: ^3.2.6 node-fetch-with-proxy: ^0.1.4 sha1: ^1.1.1 - snobuild: ^2.7.0 + snobuild: ^3.2.0 snofa: ^0.4.1 snorun: ^1.1.17 tsv: ^0.2.0 @@ -241,7 +246,7 @@ importers: conventional-changelog-cli: 2.2.2 husky: 5.2.0 mocha: 10.0.0 - snobuild: 2.7.1 + snobuild: link:../snobuild tsx: 3.9.0 packages/sno-mongo-ku: @@ -249,7 +254,7 @@ importers: '@types/node': ^17.0.10 mongodb: ^4.9.1 p-queue: ^7.1.0 - snobuild: workspace:^3.1.1 + snobuild: ^3.1.1 dependencies: mongodb: 4.9.1 p-queue: 7.3.0 @@ -260,31 +265,29 @@ importers: packages/sno-utils: specifiers: '@types/node': ^14.14.22 - snobuild: ^2.7.0 + snobuild: ^3.2.0 devDependencies: '@types/node': 14.18.28 - snobuild: 2.7.1 + snobuild: link:../snobuild packages/snobuild: specifiers: '@types/node': ^18.8.0 '@types/yargs': ^17.0.10 - esbuild: ^0.15.9 + esbuild: ^0.15.10 globby: ^13.1.1 - snorun: ^1.1.17 sort-package-json: ^1.57.0 typescript: ^4.7.4 yargs: ^17.5.1 dependencies: globby: 13.1.2 - snorun: link:../snorun sort-package-json: 1.57.0 - typescript: 4.8.2 yargs: 17.5.1 devDependencies: '@types/node': 18.8.0 '@types/yargs': 17.0.12 - esbuild: 0.15.9 + esbuild: 0.15.10 + typescript: 4.8.2 packages/snoclip: specifiers: @@ -307,6 +310,18 @@ importers: tsx: 3.9.0 typescript: 4.8.2 + packages/snocommit: + specifiers: + '@types/yargs': ^17.0.10 + snobuild: ^3.2.0 + tsx: ^3.4.2 + yargs: ^17.5.1 + devDependencies: + '@types/yargs': 17.0.12 + snobuild: link:../snobuild + tsx: 3.9.0 + yargs: 17.5.1 + packages/snofa: specifiers: '@types/mocha': ^9.1.1 @@ -325,7 +340,7 @@ importers: '@types/node': ^18.7.18 '@types/yargs': ^17.0.10 exec-sh: ^0.4.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 snorun: ^1.1.17 yargs: ^17.5.1 dependencies: @@ -335,15 +350,12 @@ importers: devDependencies: '@types/node': 18.7.18 '@types/yargs': 17.0.12 - snobuild: 2.7.1 - - packages/snoio: - specifiers: {} + snobuild: link:../snobuild packages/snorun: specifiers: '@types/node': ^18.7.18 - snobuild: workspace:^3.1.1 + snobuild: ^3.1.1 devDependencies: '@types/node': 18.7.18 snobuild: link:../snobuild @@ -353,7 +365,7 @@ importers: '@types/node': ^18.7.13 '@types/yargs': ^17.0.10 say: ^0.16.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 yargs: ^17.5.1 dependencies: '@types/node': 18.7.16 @@ -361,16 +373,16 @@ importers: yargs: 17.5.1 devDependencies: '@types/yargs': 17.0.12 - snobuild: 2.7.1 + snobuild: link:../snobuild packages/snotran: specifiers: '@snomiao/google-translate-api-browser': ^1.2.0 - snobuild: ^2.7.0 + snobuild: ^3.2.0 dependencies: '@snomiao/google-translate-api-browser': 1.2.0 devDependencies: - snobuild: 2.7.1 + snobuild: link:../snobuild packages: @@ -573,7 +585,7 @@ packages: /@esbuild-kit/core-utils/2.3.0: resolution: {integrity: sha512-JL73zt/LN/qqziHuod4/bM2xBNNofDZu1cbwT6KIn6B11lA4cgDXkoSHOfNCbZMZOnh0Aqf0vW/gNQC+Z18hKQ==} dependencies: - esbuild: 0.15.7 + esbuild: 0.15.9 source-map-support: 0.5.21 dev: true @@ -584,8 +596,8 @@ packages: get-tsconfig: 4.2.0 dev: true - /@esbuild/android-arm/0.15.9: - resolution: {integrity: sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==} + /@esbuild/android-arm/0.15.10: + resolution: {integrity: sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -593,17 +605,17 @@ packages: dev: true optional: true - /@esbuild/linux-loong64/0.14.54: - resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==} + /@esbuild/android-arm/0.15.9: + resolution: {integrity: sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==} engines: {node: '>=12'} - cpu: [loong64] - os: [linux] + cpu: [arm] + os: [android] requiresBuild: true dev: true optional: true - /@esbuild/linux-loong64/0.15.7: - resolution: {integrity: sha512-IKznSJOsVUuyt7cDzzSZyqBEcZe+7WlBqTVXiF1OXP/4Nm387ToaXZ0fyLwI1iBlI/bzpxVq411QE2/Bt2XWWw==} + /@esbuild/linux-loong64/0.15.10: + resolution: {integrity: sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -3558,17 +3570,8 @@ packages: is-date-object: 1.0.5 is-symbol: 1.0.4 - /esbuild-android-64/0.14.54: - resolution: {integrity: sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-64/0.15.7: - resolution: {integrity: sha512-p7rCvdsldhxQr3YHxptf1Jcd86dlhvc3EQmQJaZzzuAxefO9PvcI0GLOa5nCWem1AJ8iMRu9w0r5TG8pHmbi9w==} + /esbuild-android-64/0.15.10: + resolution: {integrity: sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -3585,17 +3588,8 @@ packages: dev: true optional: true - /esbuild-android-arm64/0.14.54: - resolution: {integrity: sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-arm64/0.15.7: - resolution: {integrity: sha512-L775l9ynJT7rVqRM5vo+9w5g2ysbOCfsdLV4CWanTZ1k/9Jb3IYlQ06VCI1edhcosTYJRECQFJa3eAvkx72eyQ==} + /esbuild-android-arm64/0.15.10: + resolution: {integrity: sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -3612,17 +3606,8 @@ packages: dev: true optional: true - /esbuild-darwin-64/0.14.54: - resolution: {integrity: sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-64/0.15.7: - resolution: {integrity: sha512-KGPt3r1c9ww009t2xLB6Vk0YyNOXh7hbjZ3EecHoVDxgtbUlYstMPDaReimKe6eOEfyY4hBEEeTvKwPsiH5WZg==} + /esbuild-darwin-64/0.15.10: + resolution: {integrity: sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -3639,17 +3624,8 @@ packages: dev: true optional: true - /esbuild-darwin-arm64/0.14.54: - resolution: {integrity: sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-arm64/0.15.7: - resolution: {integrity: sha512-kBIHvtVqbSGajN88lYMnR3aIleH3ABZLLFLxwL2stiuIGAjGlQW741NxVTpUHQXUmPzxi6POqc9npkXa8AcSZQ==} + /esbuild-darwin-arm64/0.15.10: + resolution: {integrity: sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -3666,17 +3642,8 @@ packages: dev: true optional: true - /esbuild-freebsd-64/0.14.54: - resolution: {integrity: sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-64/0.15.7: - resolution: {integrity: sha512-hESZB91qDLV5MEwNxzMxPfbjAhOmtfsr9Wnuci7pY6TtEh4UDuevmGmkUIjX/b+e/k4tcNBMf7SRQ2mdNuK/HQ==} + /esbuild-freebsd-64/0.15.10: + resolution: {integrity: sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -3693,17 +3660,8 @@ packages: dev: true optional: true - /esbuild-freebsd-arm64/0.14.54: - resolution: {integrity: sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-arm64/0.15.7: - resolution: {integrity: sha512-dLFR0ChH5t+b3J8w0fVKGvtwSLWCv7GYT2Y2jFGulF1L5HftQLzVGN+6pi1SivuiVSmTh28FwUhi9PwQicXI6Q==} + /esbuild-freebsd-arm64/0.15.10: + resolution: {integrity: sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -3720,17 +3678,8 @@ packages: dev: true optional: true - /esbuild-linux-32/0.14.54: - resolution: {integrity: sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-32/0.15.7: - resolution: {integrity: sha512-v3gT/LsONGUZcjbt2swrMjwxo32NJzk+7sAgtxhGx1+ZmOFaTRXBAi1PPfgpeo/J//Un2jIKm/I+qqeo4caJvg==} + /esbuild-linux-32/0.15.10: + resolution: {integrity: sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -3747,17 +3696,8 @@ packages: dev: true optional: true - /esbuild-linux-64/0.14.54: - resolution: {integrity: sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-64/0.15.7: - resolution: {integrity: sha512-LxXEfLAKwOVmm1yecpMmWERBshl+Kv5YJ/1KnyAr6HRHFW8cxOEsEfisD3sVl/RvHyW//lhYUVSuy9jGEfIRAQ==} + /esbuild-linux-64/0.15.10: + resolution: {integrity: sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -3774,17 +3714,8 @@ packages: dev: true optional: true - /esbuild-linux-arm/0.14.54: - resolution: {integrity: sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm/0.15.7: - resolution: {integrity: sha512-JKgAHtMR5f75wJTeuNQbyznZZa+pjiUHV7sRZp42UNdyXC6TiUYMW/8z8yIBAr2Fpad8hM1royZKQisqPABPvQ==} + /esbuild-linux-arm/0.15.10: + resolution: {integrity: sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -3801,17 +3732,8 @@ packages: dev: true optional: true - /esbuild-linux-arm64/0.14.54: - resolution: {integrity: sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm64/0.15.7: - resolution: {integrity: sha512-P3cfhudpzWDkglutWgXcT2S7Ft7o2e3YDMrP1n0z2dlbUZghUkKCyaWw0zhp4KxEEzt/E7lmrtRu/pGWnwb9vw==} + /esbuild-linux-arm64/0.15.10: + resolution: {integrity: sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -3828,17 +3750,8 @@ packages: dev: true optional: true - /esbuild-linux-mips64le/0.14.54: - resolution: {integrity: sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-mips64le/0.15.7: - resolution: {integrity: sha512-T7XKuxl0VpeFLCJXub6U+iybiqh0kM/bWOTb4qcPyDDwNVhLUiPcGdG2/0S7F93czUZOKP57YiLV8YQewgLHKw==} + /esbuild-linux-mips64le/0.15.10: + resolution: {integrity: sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -3855,17 +3768,8 @@ packages: dev: true optional: true - /esbuild-linux-ppc64le/0.14.54: - resolution: {integrity: sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-ppc64le/0.15.7: - resolution: {integrity: sha512-6mGuC19WpFN7NYbecMIJjeQgvDb5aMuvyk0PDYBJrqAEMkTwg3Z98kEKuCm6THHRnrgsdr7bp4SruSAxEM4eJw==} + /esbuild-linux-ppc64le/0.15.10: + resolution: {integrity: sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -3882,17 +3786,8 @@ packages: dev: true optional: true - /esbuild-linux-riscv64/0.14.54: - resolution: {integrity: sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-riscv64/0.15.7: - resolution: {integrity: sha512-uUJsezbswAYo/X7OU/P+PuL/EI9WzxsEQXDekfwpQ23uGiooxqoLFAPmXPcRAt941vjlY9jtITEEikWMBr+F/g==} + /esbuild-linux-riscv64/0.15.10: + resolution: {integrity: sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -3909,17 +3804,8 @@ packages: dev: true optional: true - /esbuild-linux-s390x/0.14.54: - resolution: {integrity: sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-s390x/0.15.7: - resolution: {integrity: sha512-+tO+xOyTNMc34rXlSxK7aCwJgvQyffqEM5MMdNDEeMU3ss0S6wKvbBOQfgd5jRPblfwJ6b+bKiz0g5nABpY0QQ==} + /esbuild-linux-s390x/0.15.10: + resolution: {integrity: sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -3936,17 +3822,8 @@ packages: dev: true optional: true - /esbuild-netbsd-64/0.14.54: - resolution: {integrity: sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-netbsd-64/0.15.7: - resolution: {integrity: sha512-yVc4Wz+Pu3cP5hzm5kIygNPrjar/v5WCSoRmIjCPWfBVJkZNb5brEGKUlf+0Y759D48BCWa0WHrWXaNy0DULTQ==} + /esbuild-netbsd-64/0.15.10: + resolution: {integrity: sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -3963,17 +3840,8 @@ packages: dev: true optional: true - /esbuild-openbsd-64/0.14.54: - resolution: {integrity: sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-openbsd-64/0.15.7: - resolution: {integrity: sha512-GsimbwC4FSR4lN3wf8XmTQ+r8/0YSQo21rWDL0XFFhLHKlzEA4SsT1Tl8bPYu00IU6UWSJ+b3fG/8SB69rcuEQ==} + /esbuild-openbsd-64/0.15.10: + resolution: {integrity: sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -3990,17 +3858,8 @@ packages: dev: true optional: true - /esbuild-sunos-64/0.14.54: - resolution: {integrity: sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /esbuild-sunos-64/0.15.7: - resolution: {integrity: sha512-8CDI1aL/ts0mDGbWzjEOGKXnU7p3rDzggHSBtVryQzkSOsjCHRVe0iFYUuhczlxU1R3LN/E7HgUO4NXzGGP/Ag==} + /esbuild-sunos-64/0.15.10: + resolution: {integrity: sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -4017,17 +3876,8 @@ packages: dev: true optional: true - /esbuild-windows-32/0.14.54: - resolution: {integrity: sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-32/0.15.7: - resolution: {integrity: sha512-cOnKXUEPS8EGCzRSFa1x6NQjGhGsFlVgjhqGEbLTPsA7x4RRYiy2RKoArNUU4iR2vHmzqS5Gr84MEumO/wxYKA==} + /esbuild-windows-32/0.15.10: + resolution: {integrity: sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -4044,17 +3894,8 @@ packages: dev: true optional: true - /esbuild-windows-64/0.14.54: - resolution: {integrity: sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-64/0.15.7: - resolution: {integrity: sha512-7MI08Ec2sTIDv+zH6StNBKO+2hGUYIT42GmFyW6MBBWWtJhTcQLinKS6ldIN1d52MXIbiJ6nXyCJ+LpL4jBm3Q==} + /esbuild-windows-64/0.15.10: + resolution: {integrity: sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -4071,17 +3912,8 @@ packages: dev: true optional: true - /esbuild-windows-arm64/0.14.54: - resolution: {integrity: sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-arm64/0.15.7: - resolution: {integrity: sha512-R06nmqBlWjKHddhRJYlqDd3Fabx9LFdKcjoOy08YLimwmsswlFBJV4rXzZCxz/b7ZJXvrZgj8DDv1ewE9+StMw==} + /esbuild-windows-arm64/0.15.10: + resolution: {integrity: sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -4098,62 +3930,34 @@ packages: dev: true optional: true - /esbuild/0.14.54: - resolution: {integrity: sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/linux-loong64': 0.14.54 - esbuild-android-64: 0.14.54 - esbuild-android-arm64: 0.14.54 - esbuild-darwin-64: 0.14.54 - esbuild-darwin-arm64: 0.14.54 - esbuild-freebsd-64: 0.14.54 - esbuild-freebsd-arm64: 0.14.54 - esbuild-linux-32: 0.14.54 - esbuild-linux-64: 0.14.54 - esbuild-linux-arm: 0.14.54 - esbuild-linux-arm64: 0.14.54 - esbuild-linux-mips64le: 0.14.54 - esbuild-linux-ppc64le: 0.14.54 - esbuild-linux-riscv64: 0.14.54 - esbuild-linux-s390x: 0.14.54 - esbuild-netbsd-64: 0.14.54 - esbuild-openbsd-64: 0.14.54 - esbuild-sunos-64: 0.14.54 - esbuild-windows-32: 0.14.54 - esbuild-windows-64: 0.14.54 - esbuild-windows-arm64: 0.14.54 - dev: true - - /esbuild/0.15.7: - resolution: {integrity: sha512-7V8tzllIbAQV1M4QoE52ImKu8hT/NLGlGXkiDsbEU5PS6K8Mn09ZnYoS+dcmHxOS9CRsV4IRAMdT3I67IyUNXw==} + /esbuild/0.15.10: + resolution: {integrity: sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/linux-loong64': 0.15.7 - esbuild-android-64: 0.15.7 - esbuild-android-arm64: 0.15.7 - esbuild-darwin-64: 0.15.7 - esbuild-darwin-arm64: 0.15.7 - esbuild-freebsd-64: 0.15.7 - esbuild-freebsd-arm64: 0.15.7 - esbuild-linux-32: 0.15.7 - esbuild-linux-64: 0.15.7 - esbuild-linux-arm: 0.15.7 - esbuild-linux-arm64: 0.15.7 - esbuild-linux-mips64le: 0.15.7 - esbuild-linux-ppc64le: 0.15.7 - esbuild-linux-riscv64: 0.15.7 - esbuild-linux-s390x: 0.15.7 - esbuild-netbsd-64: 0.15.7 - esbuild-openbsd-64: 0.15.7 - esbuild-sunos-64: 0.15.7 - esbuild-windows-32: 0.15.7 - esbuild-windows-64: 0.15.7 - esbuild-windows-arm64: 0.15.7 + '@esbuild/android-arm': 0.15.10 + '@esbuild/linux-loong64': 0.15.10 + esbuild-android-64: 0.15.10 + esbuild-android-arm64: 0.15.10 + esbuild-darwin-64: 0.15.10 + esbuild-darwin-arm64: 0.15.10 + esbuild-freebsd-64: 0.15.10 + esbuild-freebsd-arm64: 0.15.10 + esbuild-linux-32: 0.15.10 + esbuild-linux-64: 0.15.10 + esbuild-linux-arm: 0.15.10 + esbuild-linux-arm64: 0.15.10 + esbuild-linux-mips64le: 0.15.10 + esbuild-linux-ppc64le: 0.15.10 + esbuild-linux-riscv64: 0.15.10 + esbuild-linux-s390x: 0.15.10 + esbuild-netbsd-64: 0.15.10 + esbuild-openbsd-64: 0.15.10 + esbuild-sunos-64: 0.15.10 + esbuild-windows-32: 0.15.10 + esbuild-windows-64: 0.15.10 + esbuild-windows-arm64: 0.15.10 dev: true /esbuild/0.15.9: @@ -7635,26 +7439,10 @@ packages: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - /snobuild/2.7.1: - resolution: {integrity: sha512-X1f+j4LDnUcczCS3FI7RGN8m+/o67x+2HJuAE17cIimBIZ7TgL/sb5UJrth9Liy7MQHHviiH3IIVFc4j1HMACA==} - hasBin: true - dependencies: - esbuild: 0.14.54 - globby: 13.1.2 - snorun: 1.1.2 - sort-package-json: 1.57.0 - typescript: 4.8.2 - yargs: 17.5.1 - dev: true - /snofa/0.4.5: resolution: {integrity: sha512-QlaW3YWRbhf7/gagbA5T3XizCbop3BIYI5McOPkRiHoegn2On4XUmYJLobfELtB1aZ71EO9xu6yXTJJFvtcsQg==} dev: false - /snorun/1.1.2: - resolution: {integrity: sha512-hc53XgrqCpG7aaFXiHtevMnlNsij+c6bMAugMKmPDnvTEez/WYieEBYy9vXJvOdgE4wTSQgEBHyjauKTk0EeMg==} - dev: true - /socks-proxy-agent/5.0.1: resolution: {integrity: sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==} engines: {node: '>= 6'} @@ -8216,6 +8004,7 @@ packages: resolution: {integrity: sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==} engines: {node: '>=4.2.0'} hasBin: true + dev: true /typy/3.3.0: resolution: {integrity: sha512-Du53deMF9X9pSM3gVXDjLBq14BUfZWSGKfmmR1kTlg953RaIZehfc8fQuoAiW+SRO6bJsP+59mv1tsH8vwKghg==}