From 09f3f0b769360cf2937db9de39396931ce1d7d38 Mon Sep 17 00:00:00 2001 From: Novout Date: Sat, 13 May 2023 12:02:38 -0300 Subject: [PATCH] fix(esbuild): normalize dts --- package.json | 2 +- .../pdfeasy/examples}/simple.pdf | Bin 1354 -> 1354 bytes .../pdfeasy/examples}/using-external-font.pdf | Bin 3713 -> 3713 bytes packages/pdfeasy/package.json | 7 +- packages/pdfeasy/scripts/build.js | 3 - .../pdfeasy/scripts/generate/simple-pdf.js | 2 +- packages/pdfeasy/src/content/image.ts | 2 +- packages/pdfeasy/src/env.d.ts | 1 - packages/pdfeasy/src/pipe/factory.ts | 8 +- packages/pdfeasy/src/plugins/page.ts | 2 +- packages/pdfeasy/tsconfig.json | 57 ++-- pnpm-lock.yaml | 289 +----------------- 12 files changed, 57 insertions(+), 316 deletions(-) rename {examples => packages/pdfeasy/examples}/simple.pdf (92%) rename {examples => packages/pdfeasy/examples}/using-external-font.pdf (97%) delete mode 100644 packages/pdfeasy/src/env.d.ts diff --git a/package.json b/package.json index 7c42c24..17b85d6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "patch": "generi log patch", "minor": "generi log minor", "major": "generi log major", - "prepublishOnly": "pnpm run build:prod" + "prepublishOnly": "pnpm run build:prod && pnpm run node:script" }, "devDependencies": { "generi": "^1.2.1", diff --git a/examples/simple.pdf b/packages/pdfeasy/examples/simple.pdf similarity index 92% rename from examples/simple.pdf rename to packages/pdfeasy/examples/simple.pdf index c37fcc03a01d0ee3d607b777f32d3f6b0ffa3730..9c89becffe486d27d8a885b181ba6c80a940c703 100644 GIT binary patch delta 94 zcmX@bb&6|)G!v((p|PQfsimRiW)-HBOwOi;iI#~;=Ei18iH3=0iD`xw#wq6J#>qw| UW@+XosfKn6HiVQ+Hei(k0KrKaFaQ7m delta 94 zcmX@bb&6|)G!v(>fr){kfw`&0W)-HBOwP$EW(J8C7RH7triN+emIf(lDTXHI=EjNU U$w}rZ=B9QEHiVQ+Hei(k0KJeILI3~& diff --git a/examples/using-external-font.pdf b/packages/pdfeasy/examples/using-external-font.pdf similarity index 97% rename from examples/using-external-font.pdf rename to packages/pdfeasy/examples/using-external-font.pdf index c0c57abb9df52c4fb972358f6aed6fadace56cb4..4e2332a374e78d5c3c02642391d6682ceaa75922 100644 GIT binary patch delta 117 zcmZpaZIs<$!o+E6Xl!U=YH4V>*_P=Ucbut7s-d}skzuM~vVldiv6;ECd7`1Ag^{Ug pl6jhGilv=`4M8QbTy}O`#U+VFB^5=fXTSTmbaj9uNQk delta 117 zcmZpaZIs<$!o+E8U}9isU~X!$*_P=UcU*ExvPp89simPwQgX7Pp}D2GrKw@EMUq*H pxv6nts)?O~4M8QbTy}O`#U+VFB^5=fXTSTmW=ZAM5}C diff --git a/packages/pdfeasy/package.json b/packages/pdfeasy/package.json index 0967d10..d8e2d80 100644 --- a/packages/pdfeasy/package.json +++ b/packages/pdfeasy/package.json @@ -36,8 +36,9 @@ "types": "./dist/index.d.ts", "scripts": { "format": "prettier src/**/*.ts scripts/**/*.js --write", - "build": "rimraf dist && cross-env NODE_ENV=development node scripts/build.js", - "build:prod": "rimraf dist && cross-env NODE_ENV=production node scripts/build.js", + "build": "rimraf dist && cross-env NODE_ENV=development node scripts/build.js && pnpm run normalizeDts", + "build:prod": "rimraf dist && cross-env NODE_ENV=production node scripts/build.js && pnpm run normalizeDts", + "normalizeDts": "tsup ./src/index.ts --dts && rimraf dist/index.js", "test": "pnpm build:prod && vitest run --coverage", "node:script": "node -r esm ./scripts/generate/run-node.js", "demo": "vite --port 3000" @@ -68,7 +69,6 @@ "esbuild": "0.17.18", "esbuild-plugin-alias": "0.2.1", "esbuild-plugin-fileloc": "0.0.6", - "esbuild-plugin-d.ts": "1.1.0", "esbuild-plugin-replace": "1.3.0", "esbuild-plugin-resolve": "1.0.3", "esm": "3.2.25", @@ -76,6 +76,7 @@ "prettier": "2.8.8", "rimraf": "5.0.0", "typescript": "5.0.4", + "tsup": "6.7.0", "vite": "4.3.5", "vitest": "0.31.0" } diff --git a/packages/pdfeasy/scripts/build.js b/packages/pdfeasy/scripts/build.js index cf386a7..3058298 100644 --- a/packages/pdfeasy/scripts/build.js +++ b/packages/pdfeasy/scripts/build.js @@ -1,7 +1,6 @@ const { build } = require('esbuild') const alias = require('esbuild-plugin-alias') const replace = require('esbuild-plugin-resolve') -const { dtsPlugin } = require("esbuild-plugin-d.ts"); const browserPlugin = require('node-stdlib-browser/helpers/esbuild/plugin') const stdlib = require('node-stdlib-browser') @@ -31,7 +30,6 @@ const client = () => { Buffer: 'Buffer', }, plugins: [ - dtsPlugin(), alias({ pdfkit: require.resolve('pdfkit/js/pdfkit.standalone.js'), fontkit: require.resolve('fontkit-next'), @@ -67,7 +65,6 @@ const node = () => { sourcemap: process.env.NODE_ENV === 'production', minify: process.env.NODE_ENV === 'production', plugins: [ - dtsPlugin(), replace({ // See https://github.com/Pzixel/PDFKit-example/pull/1/files "var fs = _interopDefault(require('fs'));": "var fs = require('fs');", diff --git a/packages/pdfeasy/scripts/generate/simple-pdf.js b/packages/pdfeasy/scripts/generate/simple-pdf.js index 008f0f3..241199c 100644 --- a/packages/pdfeasy/scripts/generate/simple-pdf.js +++ b/packages/pdfeasy/scripts/generate/simple-pdf.js @@ -13,7 +13,7 @@ pdfeasy.add([{ raw: 'A simple pdf!', text: {} }]) pdfeasy .run({ type: 'server', - serverPath: path.resolve(process.cwd() + '../examples'), + serverPath: path.resolve(process.cwd() + '/examples'), }) .then(() => { console.log('simple-pdf.js ready!') diff --git a/packages/pdfeasy/src/content/image.ts b/packages/pdfeasy/src/content/image.ts index 529c740..e8f412f 100644 --- a/packages/pdfeasy/src/content/image.ts +++ b/packages/pdfeasy/src/content/image.ts @@ -42,7 +42,7 @@ export const SvgToPNG = (raw: string): Promise<{ raw: string }> => { } export const getImageRaw = (raw: string): Promise => { - return new Promise(async (res, rej) => { + return new Promise(async (res) => { if (regex().base64(raw)) { res({ raw, diff --git a/packages/pdfeasy/src/env.d.ts b/packages/pdfeasy/src/env.d.ts deleted file mode 100644 index 6befbef..0000000 --- a/packages/pdfeasy/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'pdfeasy' \ No newline at end of file diff --git a/packages/pdfeasy/src/pipe/factory.ts b/packages/pdfeasy/src/pipe/factory.ts index 6550930..d54908f 100644 --- a/packages/pdfeasy/src/pipe/factory.ts +++ b/packages/pdfeasy/src/pipe/factory.ts @@ -69,7 +69,7 @@ export const resolveContent = async ( if (!content.raw) return - const data = embed ? ` ${raw ?? content.raw}` : raw ?? content.raw + const data = embed ? ` ${raw || content.raw}` : raw || content.raw await app .font(getCorrectFontFamily(style?.font || defaults.text.font, style)) @@ -152,14 +152,14 @@ export const resolveContent = async ( const addCheckbox = async () => { const backgroundColor = resolveColor( - content.checkbox?.backgroundColor ?? defaults.checkbox.backgroundColor, + content.checkbox?.backgroundColor || defaults.checkbox.backgroundColor, run ) const borderColor = resolveColor( - content.checkbox?.borderColor ?? defaults.checkbox.borderColor, + content.checkbox?.borderColor || defaults.checkbox.borderColor, run ) - const size = content.checkbox?.size ?? defaults.checkbox.size + const size = content.checkbox?.size || defaults.checkbox.size app.initForm() diff --git a/packages/pdfeasy/src/plugins/page.ts b/packages/pdfeasy/src/plugins/page.ts index ba6f80f..8825256 100644 --- a/packages/pdfeasy/src/plugins/page.ts +++ b/packages/pdfeasy/src/plugins/page.ts @@ -78,7 +78,7 @@ export const generate = (instance: pdfeasy): PluginGenerate => { const Image = async ( str: string, style: ContentImage, - options: PluginPageImageOptions + _: PluginPageImageOptions ): Promise => { if (!str) return diff --git a/packages/pdfeasy/tsconfig.json b/packages/pdfeasy/tsconfig.json index 1be56a6..b094c39 100644 --- a/packages/pdfeasy/tsconfig.json +++ b/packages/pdfeasy/tsconfig.json @@ -1,29 +1,30 @@ -{ - "compilerOptions": { - "target": "es6", - "module": "commonjs", - "lib": ["dom", "es6", "es2017", "esnext.asynciterable"], - "skipLibCheck": true, - "sourceMap": true, - "outDir": "./dist", - "moduleResolution": "node", - "removeComments": false, - "noImplicitAny": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "resolveJsonModule": true, - "baseUrl": ".", - "declaration": true, - "emitDeclarationOnly": true - }, - "include": ["src/**/*.ts"] +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "lib": ["dom", "es6", "es2017", "esnext.asynciterable"], + "skipLibCheck": true, + "sourceMap": true, + "outDir": "./dist", + "moduleResolution": "node", + "removeComments": false, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "resolveJsonModule": true, + "baseUrl": ".", + "declaration": true, + "declarationMap": true, + "declarationDir": "./dist" + }, + "include": ["src/**/*.ts"] } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7066a53..585753f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,9 +84,6 @@ importers: esbuild-plugin-alias: specifier: 0.2.1 version: 0.2.1 - esbuild-plugin-d.ts: - specifier: 1.1.0 - version: 1.1.0(typescript@5.0.4) esbuild-plugin-fileloc: specifier: 0.0.6 version: 0.0.6 @@ -108,6 +105,9 @@ importers: rimraf: specifier: 5.0.0 version: 5.0.0 + tsup: + specifier: 6.7.0 + version: 6.7.0(typescript@5.0.4) typescript: specifier: 5.0.4 version: 5.0.4 @@ -634,15 +634,6 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.14.54: - resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-loong64@0.16.17: resolution: {integrity: sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==} engines: {node: '>=12'} @@ -992,7 +983,7 @@ packages: engines: {node: ^14.17.0 || >=16.0.0} dependencies: chalk: 4.1.2 - execa: 5.0.0 + execa: 5.1.1 strong-log-transformer: 2.1.0 dev: true @@ -3051,16 +3042,6 @@ packages: run-applescript: 5.0.0 dev: true - /bundle-require@3.1.2(esbuild@0.14.54): - resolution: {integrity: sha512-Of6l6JBAxiyQ5axFxUM6dYeP/W7X2Sozeo/4EYB9sJhL+dqL7TKjg+shwxp6jlu/6ZSERfsYtIpSJ1/x3XkAEA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - peerDependencies: - esbuild: '>=0.13' - dependencies: - esbuild: 0.14.54 - load-tsconfig: 0.2.5 - dev: true - /bundle-require@4.0.1(esbuild@0.17.18): resolution: {integrity: sha512-9NQkRHlNdNpDBGmLpngF3EFDcwodhMUuLz9PaWYciVcQF9SE4LFjM2DB/xV1Li5JiuDMv7ZUWuC3rGbqR0MAXQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -4385,172 +4366,10 @@ packages: resolution: {integrity: sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==} dev: true - /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-arm64@0.14.54: - resolution: {integrity: sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - 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-arm64@0.14.54: - resolution: {integrity: sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - 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-arm64@0.14.54: - resolution: {integrity: sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - 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-64@0.14.54: - resolution: {integrity: sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - 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-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-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-ppc64le@0.14.54: - resolution: {integrity: sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - 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-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-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-openbsd-64@0.14.54: - resolution: {integrity: sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - /esbuild-plugin-alias@0.2.1: resolution: {integrity: sha512-jyfL/pwPqaFXyKnj8lP8iLk6Z0m099uXR45aSN8Av1XD4vhvQutxxPzgA2bTcAwQpa1zCXDcWOlhFgyP3GKqhQ==} dev: true - /esbuild-plugin-d.ts@1.1.0(typescript@5.0.4): - resolution: {integrity: sha512-3oSR3kUS4fNdKHLYLcST9YOfD2dULe7/UbXnrnu/mRybJYW+jZlYNgklb9Pt7osg6B1qwAYMyr2jTC+Ijj2YbQ==} - engines: {node: '>=12.0.0'} - peerDependencies: - typescript: '*' - dependencies: - chalk: 4.1.2 - jju: 1.4.0 - tmp: 0.2.1 - tsup: 5.12.9(typescript@5.0.4) - typescript: 5.0.4 - transitivePeerDependencies: - - '@swc/core' - - postcss - - supports-color - - ts-node - dev: true - /esbuild-plugin-fileloc@0.0.6: resolution: {integrity: sha512-NfuXDBRDC9qeZ6bSr+FlBqOwtbe4uwkxYnrgyF5aA6LmMwUD1u0B8g8blq2kGB2xIf3x7lgUNq6K8pjlO8is/g==} dependencies: @@ -4567,71 +4386,6 @@ packages: resolution: {integrity: sha512-DHtwExowoWa5rC+mLVppGqe4MiFCZsKEeNgps4UAOKqmu3CjUgyyFjw+AHXteGCRdCJID76OsUuyGi2cOLIxUQ==} dev: 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-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-64@0.14.54: - resolution: {integrity: sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - 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@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.16.17: resolution: {integrity: sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==} engines: {node: '>=12'} @@ -6568,17 +6322,13 @@ packages: async: 3.2.4 chalk: 4.1.2 filelist: 1.0.4 - minimatch: 3.0.5 + minimatch: 3.1.2 dev: true /jiti@1.18.2: resolution: {integrity: sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==} hasBin: true - /jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - dev: true - /joycon@3.1.1: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} @@ -9460,14 +9210,6 @@ packages: yargs: 17.7.2 dev: true - /rollup@2.79.1: - resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} - engines: {node: '>=10.0.0'} - hasBin: true - optionalDependencies: - fsevents: 2.3.2 - dev: true - /rollup@3.21.6: resolution: {integrity: sha512-SXIICxvxQxR3D4dp/3LDHZIJPC8a4anKMHd4E3Jiz2/JnY+2bEjqrOokAauc5ShGVNFHlEFjBXAXlaxkJqIqSg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -10111,7 +9853,7 @@ packages: engines: {node: '>=10'} dependencies: del: 6.1.1 - is-stream: 2.0.0 + is-stream: 2.0.1 temp-dir: 2.0.0 type-fest: 0.16.0 unique-string: 2.0.0 @@ -10309,13 +10051,14 @@ packages: /tslib@2.5.0: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} - /tsup@5.12.9(typescript@5.0.4): - resolution: {integrity: sha512-dUpuouWZYe40lLufo64qEhDpIDsWhRbr2expv5dHEMjwqeKJS2aXA/FPqs1dxO4T6mBojo7rvo3jP9NNzaKyDg==} + /tsup@6.7.0(typescript@4.9.5): + resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==} + engines: {node: '>=14.18'} hasBin: true peerDependencies: '@swc/core': ^1 postcss: ^8.4.12 - typescript: ^4.1.0 + typescript: '>=4.1.0' peerDependenciesMeta: '@swc/core': optional: true @@ -10324,27 +10067,27 @@ packages: typescript: optional: true dependencies: - bundle-require: 3.1.2(esbuild@0.14.54) + bundle-require: 4.0.1(esbuild@0.17.18) cac: 6.7.14 chokidar: 3.5.3 debug: 4.3.4 - esbuild: 0.14.54 + esbuild: 0.17.18 execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 postcss-load-config: 3.1.4 resolve-from: 5.0.0 - rollup: 2.79.1 + rollup: 3.21.6 source-map: 0.8.0-beta.0 sucrase: 3.32.0 tree-kill: 1.2.2 - typescript: 5.0.4 + typescript: 4.9.5 transitivePeerDependencies: - supports-color - ts-node dev: true - /tsup@6.7.0(typescript@4.9.5): + /tsup@6.7.0(typescript@5.0.4): resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==} engines: {node: '>=14.18'} hasBin: true @@ -10374,7 +10117,7 @@ packages: source-map: 0.8.0-beta.0 sucrase: 3.32.0 tree-kill: 1.2.2 - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color - ts-node