feat: 添加本地包配置解决内网环境安装问题
- 添加packages目录包含unrs-resolver和eslint-import-context本地包 - 修改package.json直接引用本地包路径 - 更新scripts使用npm替代pnpm - 修复HomeNew.tsx中的API错误处理 - 添加packages/README.md说明文档
Showing
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -8,7 +8,7 @@ |
| "dev": "rsbuild dev --open", | ||
| "build:sit": "npx rsbuild dev --env-mode sit", | ||
| "build": "rsbuild build", | ||
| "doctor": "RSDOCTOR=true pnpm build", | ||
| "doctor": "RSDOCTOR=true npm run build", | ||
| "preview": "npx rsbuild preview --env-mode production", | ||
| "lint": "eslint .", | ||
| "lint:fix": "eslint . --fix", | ||
| ... | ... | @@ -46,6 +46,7 @@ |
| "axios": "^1.7.3", | ||
| "clsx": "^2.1.1", | ||
| "date-fns": "^3.6.0", | ||
| "eslint-import-context": "file:packages/eslint-import-context", | ||
| "github-markdown-css": "^5.8.0", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| ... | ... | @@ -60,7 +61,8 @@ |
| "rehype-raw": "^7.0.0", | ||
| "rehype-sanitize": "^6.0.0", | ||
| "remark-gfm": "^4.0.0", | ||
| "tailwind-merge": "^2.4.0" | ||
| "tailwind-merge": "^2.4.0", | ||
| "unrs-resolver": "file:packages/unrs-resolver" | ||
| }, | ||
| "devDependencies": { | ||
| "@antfu/eslint-config": "^2.24.1", | ||
| ... | ... | @@ -85,7 +87,7 @@ |
| "typescript": "^5.5.2" | ||
| }, | ||
| "simple-git-hooks": { | ||
| "pre-commit": "pnpm lint-staged" | ||
| "pre-commit": "npm run lint-staged" | ||
| }, | ||
| "lint-staged": { | ||
| "*": "eslint --fix" | ||
| ... | ... |
packages/README.md
0 → 100644
packages/eslint-import-context/LICENSE
0 → 100644
packages/eslint-import-context/README.md
0 → 100644
packages/eslint-import-context/lib/index.js
0 → 100644
packages/eslint-import-context/lib/types.js
0 → 100644
packages/eslint-import-context/lib/utils.js
0 → 100644
packages/eslint-import-context/package.json
0 → 100644
| { | ||
| "name": "eslint-import-context", | ||
| "version": "0.1.9", | ||
| "type": "commonjs", | ||
| "description": "Provide context info for eslint-plugin-import-x, so no extra arguments need to be added.", | ||
| "repository": "git+https://github.com/un-ts/eslint-import-context.git", | ||
| "author": "JounQin <admin@1stg.me> (https://www.1stG.me)", | ||
| "funding": "https://opencollective.com/eslint-import-context", | ||
| "license": "MIT", | ||
| "engines": { | ||
| "node": "^12.20.0 || ^14.18.0 || >=16.0.0" | ||
| }, | ||
| "main": "./lib/index.js", | ||
| "types": "./lib/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./lib/index.d.ts", | ||
| "default": "./lib/index.js" | ||
| }, | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "files": [ | ||
| "lib", | ||
| "!**/*.tsbuildinfo" | ||
| ], | ||
| "peerDependencies": { | ||
| "unrs-resolver": "^1.0.0" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "unrs-resolver": { | ||
| "optional": true | ||
| } | ||
| }, | ||
| "dependencies": { | ||
| "get-tsconfig": "^4.10.1", | ||
| "stable-hash-x": "^0.2.0" | ||
| } | ||
| } | ||
| \ No newline at end of file |
packages/unrs-resolver/README.md
0 → 100644
This diff is collapsed.
Click to expand it.
packages/unrs-resolver/browser.js
0 → 100644
packages/unrs-resolver/index.d.ts
0 → 100644
packages/unrs-resolver/index.js
0 → 100644
This diff is collapsed.
Click to expand it.
packages/unrs-resolver/package.json
0 → 100644
| { | ||
| "name": "unrs-resolver", | ||
| "version": "1.11.1", | ||
| "type": "commonjs", | ||
| "description": "UnRS Resolver Node API with PNP support", | ||
| "repository": "git+https://github.com/unrs/unrs-resolver.git", | ||
| "homepage": "https://github.com/unrs/unrs-resolver#readme", | ||
| "author": "JounQin <admin@1stg.me> (https://www.1stG.me)", | ||
| "funding": "https://opencollective.com/unrs-resolver", | ||
| "license": "MIT", | ||
| "main": "index.js", | ||
| "browser": "browser.js", | ||
| "files": [ | ||
| "browser.js", | ||
| "index.d.ts", | ||
| "index.js" | ||
| ], | ||
| "scripts": { | ||
| "postinstall": "napi-postinstall unrs-resolver 1.11.1 check" | ||
| }, | ||
| "dependencies": { | ||
| "napi-postinstall": "^0.3.0" | ||
| }, | ||
| "publishConfig": { | ||
| "registry": "https://registry.npmjs.org", | ||
| "access": "public" | ||
| }, | ||
| "napi": { | ||
| "binaryName": "resolver", | ||
| "packageName": "@unrs/resolver-binding", | ||
| "wasm": { | ||
| "browser": { | ||
| "fs": true | ||
| } | ||
| }, | ||
| "targets": [ | ||
| "x86_64-pc-windows-msvc", | ||
| "aarch64-pc-windows-msvc", | ||
| "i686-pc-windows-msvc", | ||
| "x86_64-unknown-linux-gnu", | ||
| "x86_64-unknown-linux-musl", | ||
| "x86_64-unknown-freebsd", | ||
| "aarch64-linux-android", | ||
| "aarch64-unknown-linux-gnu", | ||
| "aarch64-unknown-linux-musl", | ||
| "armv7-linux-androideabi", | ||
| "armv7-unknown-linux-gnueabihf", | ||
| "armv7-unknown-linux-musleabihf", | ||
| "powerpc64le-unknown-linux-gnu", | ||
| "riscv64gc-unknown-linux-gnu", | ||
| "riscv64gc-unknown-linux-musl", | ||
| "s390x-unknown-linux-gnu", | ||
| "x86_64-apple-darwin", | ||
| "aarch64-apple-darwin", | ||
| "wasm32-wasip1-threads" | ||
| ] | ||
| }, | ||
| "optionalDependencies": { | ||
| "@unrs/resolver-binding-win32-x64-msvc": "1.11.1", | ||
| "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", | ||
| "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", | ||
| "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", | ||
| "@unrs/resolver-binding-linux-x64-musl": "1.11.1", | ||
| "@unrs/resolver-binding-freebsd-x64": "1.11.1", | ||
| "@unrs/resolver-binding-android-arm64": "1.11.1", | ||
| "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", | ||
| "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", | ||
| "@unrs/resolver-binding-android-arm-eabi": "1.11.1", | ||
| "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", | ||
| "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", | ||
| "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", | ||
| "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", | ||
| "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", | ||
| "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", | ||
| "@unrs/resolver-binding-darwin-x64": "1.11.1", | ||
| "@unrs/resolver-binding-darwin-arm64": "1.11.1", | ||
| "@unrs/resolver-binding-wasm32-wasi": "1.11.1" | ||
| } | ||
| } | ||
| \ No newline at end of file |
Please
register
or
sign in
to comment