fix(deps): complie @antfu/install-pkg
- Added a patch for tinyexec@1.0.1 in pnpm-lock.yaml and pnpm-workspace.yaml to address specific issues. - Updated the import of installPackage from @antfu/install-pkg to @mx-space/compiled/install-pkg in tool.util.ts for better module management. - Removed @antfu/install-pkg from core package.json to streamline dependencies. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@algolia/client-search": "^4.22.1",
|
||||
"@antfu/install-pkg": "1.1.0",
|
||||
"@babel/core": "7.27.1",
|
||||
"@babel/plugin-transform-modules-commonjs": "7.27.1",
|
||||
"@babel/plugin-transform-typescript": "7.27.1",
|
||||
|
||||
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module'
|
||||
import { join } from 'node:path'
|
||||
import { cloneDeep } from 'lodash'
|
||||
|
||||
import { installPackage } from '@antfu/install-pkg'
|
||||
import { installPackage } from '@mx-space/compiled/install-pkg'
|
||||
|
||||
import { NODE_REQUIRE_PATH } from '~/constants/path.constant'
|
||||
import { logger } from '~/global/consola.global'
|
||||
|
||||
1
packages/compiled/install-pkg.ts
Normal file
1
packages/compiled/install-pkg.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './node_modules/@antfu/install-pkg'
|
||||
@@ -6,12 +6,14 @@
|
||||
"exports": {
|
||||
".": "./dist/index.cjs",
|
||||
"./auth": "./dist/auth.cjs",
|
||||
"./zod": "./dist/zod.cjs"
|
||||
"./zod": "./dist/zod.cjs",
|
||||
"./install-pkg": "./dist/install-pkg.cjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/install-pkg": "1.1.0",
|
||||
"better-auth": "1.2.5",
|
||||
"nanoid": "5.1.5",
|
||||
"zod": "3.24.3",
|
||||
|
||||
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsup'
|
||||
export default defineConfig({
|
||||
clean: true,
|
||||
target: 'es2020',
|
||||
entry: ['index.ts', 'auth.ts', 'zod.ts'],
|
||||
entry: ['index.ts', 'auth.ts', 'zod.ts', 'install-pkg.ts'],
|
||||
dts: true,
|
||||
external: ['mongodb'],
|
||||
format: ['cjs'],
|
||||
|
||||
10
patches/tinyexec@1.0.1.patch
Normal file
10
patches/tinyexec@1.0.1.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
diff --git a/dist/main.js b/dist/main.js
|
||||
index cba25835975aa12fb3e01ee463bc89d7cf51ab92..d13e398b929b329c4f4664b38db6b897b31a257f 100644
|
||||
--- a/dist/main.js
|
||||
+++ b/dist/main.js
|
||||
@@ -1,4 +1,4 @@
|
||||
-import { createRequire as __tinyexec_cr } from "node:module";const require = __tinyexec_cr(import.meta.url);
|
||||
+
|
||||
var St = Object.create;
|
||||
var $ = Object.defineProperty;
|
||||
var kt = Object.getOwnPropertyDescriptor;
|
||||
15
pnpm-lock.yaml
generated
15
pnpm-lock.yaml
generated
@@ -12,6 +12,11 @@ overrides:
|
||||
typescript: 5.8.3
|
||||
whatwg-url: 14.1.1
|
||||
|
||||
patchedDependencies:
|
||||
tinyexec@1.0.1:
|
||||
hash: b48100aa773eb35c64db5745b289f124af252ce1a25e3bc08bd1b8006aad9806
|
||||
path: patches/tinyexec@1.0.1.patch
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
@@ -73,9 +78,6 @@ importers:
|
||||
'@algolia/client-search':
|
||||
specifier: ^4.22.1
|
||||
version: 4.24.0
|
||||
'@antfu/install-pkg':
|
||||
specifier: 1.1.0
|
||||
version: 1.1.0
|
||||
'@babel/core':
|
||||
specifier: 7.27.1
|
||||
version: 7.27.1
|
||||
@@ -470,6 +472,9 @@ importers:
|
||||
|
||||
packages/compiled:
|
||||
devDependencies:
|
||||
'@antfu/install-pkg':
|
||||
specifier: 1.1.0
|
||||
version: 1.1.0
|
||||
better-auth:
|
||||
specifier: 1.2.5
|
||||
version: 1.2.5(typescript@5.8.3)
|
||||
@@ -7147,7 +7152,7 @@ snapshots:
|
||||
'@antfu/install-pkg@1.1.0':
|
||||
dependencies:
|
||||
package-manager-detector: 1.3.0
|
||||
tinyexec: 1.0.1
|
||||
tinyexec: 1.0.1(patch_hash=b48100aa773eb35c64db5745b289f124af252ce1a25e3bc08bd1b8006aad9806)
|
||||
|
||||
'@antfu/utils@8.1.1':
|
||||
optional: true
|
||||
@@ -13251,7 +13256,7 @@ snapshots:
|
||||
|
||||
tinyexec@0.3.2: {}
|
||||
|
||||
tinyexec@1.0.1: {}
|
||||
tinyexec@1.0.1(patch_hash=b48100aa773eb35c64db5745b289f124af252ce1a25e3bc08bd1b8006aad9806): {}
|
||||
|
||||
tinyglobby@0.2.12:
|
||||
dependencies:
|
||||
|
||||
@@ -10,3 +10,5 @@ onlyBuiltDependencies:
|
||||
- sharp
|
||||
- simple-git-hooks
|
||||
- unrs-resolver
|
||||
patchedDependencies:
|
||||
tinyexec@1.0.1: patches/tinyexec@1.0.1.patch
|
||||
|
||||
Reference in New Issue
Block a user