mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
* Add explicit extensions to relative imports * Add linting rule * Fix outdated pnpm lock * fix: use esbuild --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: Calum H. (IMB11) <contact@cal.engineer> Co-authored-by: Calum H. <calum@modrinth.com>
63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
{
|
|
"name": "@modrinth/api-client",
|
|
"version": "0.0.0",
|
|
"description": "An API client for Modrinth's API for use in nuxt, tauri and plain node/browser environments.",
|
|
"license": "LGPL-3.0-only",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"sideEffects": false,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modrinth/code.git",
|
|
"directory": "packages/api-client"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/modrinth/code/issues"
|
|
},
|
|
"homepage": "https://github.com/modrinth/code/tree/main/packages/api-client#readme",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"clean": "node --eval \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
"build": "pnpm run clean && node esbuild.config.mjs",
|
|
"prepare": "pnpm run build",
|
|
"lint": "eslint . && prettier --check .",
|
|
"fix": "eslint . --fix && prettier --write ."
|
|
},
|
|
"dependencies": {
|
|
"mitt": "^3.0.1",
|
|
"ofetch": "^1.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@microsoft/api-extractor": "^7.58.9",
|
|
"@modrinth/tooling-config": "workspace:*",
|
|
"@tauri-apps/plugin-http": "^2.0.0",
|
|
"esbuild": "0.27.2",
|
|
"typescript": "^5.9.3",
|
|
"unplugin-dts": "^1.0.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@tauri-apps/plugin-http": "^2.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@tauri-apps/plugin-http": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|