@shopware/api-client
Version:
Shopware client for API connection.
83 lines • 2.34 kB
JSON
{
"name": "@shopware/api-client",
"version": "1.4.0",
"description": "Shopware client for API connection.",
"author": "Shopware",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/shopware/frontends.git"
},
"homepage": "https://frontends.shopware.com/packages/api-client.html",
"keywords": [
"shopware",
"api",
"client"
],
"bugs": {
"url": "https://github.com/shopware/frontends/issues"
},
"license": "MIT",
"module": "./dist/index.mjs",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"api-types",
"admin-api-types"
],
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./helpers": {
"require": {
"types": "./dist/helpers.d.cts",
"default": "./dist/helpers.cjs"
},
"import": {
"types": "./dist/helpers.d.mts",
"default": "./dist/helpers.mjs"
}
},
"./api-types": "./api-types/storeApiTypes.d.ts",
"./store-api-types": "./api-types/storeApiTypes.d.ts",
"./admin-api-types": "./api-types/adminApiTypes.d.ts"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@types/prettier": "3.0.0",
"@vitest/coverage-v8": "3.2.4",
"fflate": "0.8.2",
"happy-dom": "20.0.11",
"prettier": "3.7.4",
"unbuild": "2.0.0",
"vitest": "3.2.4",
"tsconfig": "0.0.0"
},
"dependencies": {
"defu": "6.1.4",
"hookable": "5.5.3",
"ofetch": "1.4.1"
},
"scripts": {
"build": "export NODE_ENV=production && unbuild && pnpm build:types",
"build:types": "tsc ./src/*.ts --declaration --allowJs --emitDeclarationOnly --outDir ./temp --skipLibCheck",
"dev": "export NODE_ENV=development && unbuild --stub",
"lint": "biome check .",
"lint:fix": "biome check . --write && pnpm typecheck",
"typecheck": "tsc --noEmit",
"test": "vitest run --typecheck",
"test:bench": "vitest bench",
"test:watch": "vitest --typecheck",
"generate-types": "esno ../api-gen/src/cli.ts generate --apiType=store",
"generate-admin-types": "esno ../api-gen/src/cli.ts generate --apiType=admin"
}
}