diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e7c486..da29db7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ jobs: - run: pnpm run test - name: Deploy npm Packages - run: npx pleb publish + run: pnpm pleb publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} diff --git a/package.json b/package.json index 2744b5c..2d6cc39 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,16 @@ "jest": "^27.0.5", "markdown-magic": "^2.2.0", "markdown-magic-inline-types": "^1.0.2", - "pleb": "^3.4.4", + "pleb": "^5.1.4", "prettier": "^2.3.1", "typescript": "^4.7.4" }, "prettier": { "printWidth": 140 + }, + "pnpm": { + "patchedDependencies": { + "pleb@5.1.4": "patches/pleb@5.1.4.patch" + } } } diff --git a/patches/pleb@5.1.4.patch b/patches/pleb@5.1.4.patch new file mode 100644 index 0000000..e116abf --- /dev/null +++ b/patches/pleb@5.1.4.patch @@ -0,0 +1,13 @@ +diff --git a/dist/commands/publish.js b/dist/commands/publish.js +index 1250350da55d7bc15553d338b68b869c27208d32..26cf0db8d627a5c6416fbea806b83281d9ee12d3 100644 +--- a/dist/commands/publish.js ++++ b/dist/commands/publish.js +@@ -30,7 +30,7 @@ export async function publish({ directoryPath, dryRun = false, distDir = '.', re + stdio: 'inherit', + shell: true, + }; +- spawnSyncLogged('npm', publishArgs, spawnOptions, npmPackage.displayName); ++ spawnSyncLogged('pnpm', publishArgs, spawnOptions, npmPackage.displayName); + log(`${npmPackage.displayName}: done.`); + } + } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1f7304..9b363a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + pleb@5.1.4: + hash: knkdo6kjbvo2z6varr7ksx2fmm + path: patches/pleb@5.1.4.patch + importers: .: @@ -39,8 +44,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 pleb: - specifier: ^3.4.4 - version: 3.4.4 + specifier: ^5.1.4 + version: 5.1.4(patch_hash=knkdo6kjbvo2z6varr7ksx2fmm) prettier: specifier: ^2.3.1 version: 2.3.1 @@ -3076,6 +3081,14 @@ packages: '@xtuc/long': 4.2.2 dev: true + /@wixc3/resolve-directory-context@3.0.5: + resolution: {integrity: sha512-CTIYE9R81ww7yOLxHmW8Lw6hzgL2e0AuC90CdT1uejTQOLUGR237MQOVyLYt6yQ9gaAJPAUVQVIDQZUDLvBzxA==} + engines: {node: '>=14'} + dependencies: + minimatch: 9.0.2 + type-fest: 3.12.0 + dev: true + /@xtuc/ieee754@1.2.0: resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} dev: true @@ -3762,6 +3775,12 @@ packages: concat-map: 0.0.1 dev: true + /brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + dependencies: + balanced-match: 1.0.2 + dev: true + /braces@2.3.2: resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==} engines: {node: '>=0.10.0'} @@ -4115,6 +4134,10 @@ packages: resolution: {integrity: sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==} dev: true + /colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + dev: true + /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4125,6 +4148,11 @@ packages: /comma-separated-tokens@1.0.8: resolution: {integrity: sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==} + /commander@10.0.1: + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} + engines: {node: '>=14'} + dev: true + /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: true @@ -8004,6 +8032,13 @@ packages: brace-expansion: 1.1.11 dev: true + /minimatch@9.0.2: + resolution: {integrity: sha512-PZOT9g5v2ojiTL7r1xF6plNHLtOeTpSlDI007As2NlA2aYBMfVom17yqa6QzhmDP8QOhn7LjHTg7DFCVSSa6yg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -8367,19 +8402,17 @@ packages: engines: {node: '>=6'} dev: true - /p-queue@6.6.2: - resolution: {integrity: sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==} - engines: {node: '>=8'} + /p-queue@7.3.4: + resolution: {integrity: sha512-esox8CWt0j9EZECFvkFl2WNPat8LN4t7WWeXq73D9ha0V96qPRufApZi4ZhPwXAln1uVVal429HVVKPa2X0yQg==} + engines: {node: '>=12'} dependencies: eventemitter3: 4.0.7 - p-timeout: 3.2.0 + p-timeout: 5.1.0 dev: true - /p-timeout@3.2.0: - resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} - engines: {node: '>=8'} - dependencies: - p-finally: 1.0.0 + /p-timeout@5.1.0: + resolution: {integrity: sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==} + engines: {node: '>=12'} dev: true /p-try@1.0.0: @@ -8538,21 +8571,20 @@ packages: find-up: 2.1.0 dev: true - /pleb@3.4.4: - resolution: {integrity: sha512-CrJvk1QLOEiFlhSOFwNSsFvTR34oZsKYKkfA1D0yf/upySppiTsyJTQu6vJcPE4snwJGvmLckTc03cnHJ11MEg==} - engines: {node: '>=12'} + /pleb@5.1.4(patch_hash=knkdo6kjbvo2z6varr7ksx2fmm): + resolution: {integrity: sha512-mx68CXynYTQtRhJ9nRGVyr5idT/uoU1HR5UtR1Rji2boVKLP7vIcMLRINGrxZMVIhcmCZNCcQjwDrowUg1cHhA==} + engines: {node: '>=14'} hasBin: true dependencies: - chalk: 4.1.1 - commander: 7.2.0 - find-up: 5.0.0 - glob: 7.1.7 - p-queue: 6.6.2 - promise-assist: 1.3.0 - semver: 7.3.5 - tslib: 2.3.0 - type-fest: 1.2.1 + '@wixc3/resolve-directory-context': 3.0.5 + colorette: 2.0.20 + commander: 10.0.1 + p-queue: 7.3.4 + promise-assist: 2.0.1 + semver: 7.5.3 + type-fest: 3.12.0 dev: true + patched: true /pn@1.1.0: resolution: {integrity: sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==} @@ -8651,9 +8683,9 @@ packages: engines: {node: '>=0.4.0'} dev: true - /promise-assist@1.3.0: - resolution: {integrity: sha512-JdJWzcDyFLonrucIhnvM8V5sEPXcVpBVJg0WcjVuI14PCe6+lkbRewRpdsBnFIqVBwu9B4chMLOnFeSTpQCilA==} - engines: {node: '>=8'} + /promise-assist@2.0.1: + resolution: {integrity: sha512-hKLG+bqLZt7WjuGqgwa12pWyph23bEiqYR16WCnZQxpuveDBABKP4tRcSdMWlxIcEBN0MLsUs+VBH+TlaIHtgA==} + engines: {node: '>=14'} dev: true /promise@8.1.0: @@ -9327,6 +9359,14 @@ packages: lru-cache: 6.0.0 dev: true + /semver@7.5.3: + resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + /serialize-javascript@4.0.0: resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==} dependencies: @@ -10220,10 +10260,6 @@ packages: resolution: {integrity: sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==} dev: true - /tslib@2.3.0: - resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} - dev: true - /tsutils@3.21.0(typescript@4.3.2): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} @@ -10289,9 +10325,9 @@ packages: engines: {node: '>=8'} dev: true - /type-fest@1.2.1: - resolution: {integrity: sha512-SbmIRuXhJs8KTneu77Ecylt9zuqL683tuiLYpTRil4H++eIhqCmx6ko6KAFem9dty8sOdnEiX7j4K1nRE628fQ==} - engines: {node: '>=10'} + /type-fest@3.12.0: + resolution: {integrity: sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA==} + engines: {node: '>=14.16'} dev: true /typedarray-to-buffer@3.1.5: