{
  "name": "@atorber/baiducloud-sdk",
  "version": "1.0.3",
  "description": "Baidu Cloud Engine JavaScript SDK",
  "main": "./index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "import": "./dist/esm/index.js",
      "require": "./index.js",
      "types": "./dist/index.d.ts"
    },
    "./package.json": "./package.json"
  },
  "browser": {
    "fs": false,
    "index.js": "./dist/baidubce-sdk.bundle.js"
  },
  "files": [
    "dist/",
    "src/",
    "index.js",
    "index.d.ts",
    "package.json",
    "CHANGELOG.md",
    "README.md"
  ],
  "directories": {
    "test": "__tests__"
  },
  "scripts": {
    "build": "npm run ensure-typescript && npm run clean:bundle && npm run build:cjs && npm run build:esm && npm run build:bundle",
    "build:cjs": "node node_modules/typescript/bin/tsc",
    "build:esm": "node node_modules/typescript/bin/tsc -p tsconfig.esm.json",
    "build:ts": "npm run build:cjs",
    "build:bundle": "node scripts/build.js",
    "build:types": "node node_modules/typescript/bin/tsc --declaration --emitDeclarationOnly",
    "dev": "node node_modules/typescript/bin/tsc --watch",
    "ensure-typescript": "node scripts/ensure-typescript.js",
    "type-check": "npm run ensure-typescript && node node_modules/typescript/bin/tsc --noEmit",
    "clean": "node -e \"const fs = require('fs'); const path = require('path'); if (fs.existsSync('dist')) { try { fs.rmSync('dist', { recursive: true, force: true }); } catch(e) {} }\"",
    "clean:bundle": "node -e \"const fs = require('fs'); const path = require('path'); ['dist/baidubce-sdk.bundle.js', 'dist/baidubce-sdk.bundle.min.js'].forEach(file => { try { if (fs.existsSync(file)) fs.unlinkSync(file); } catch(e) {} });\"",
    "pack": "rm -rf dist/ && mkdir dist && browserify index.js -s baidubce.sdk -o dist/baidubce-sdk.bundle.js && uglifyjs dist/baidubce-sdk.bundle.js --compress --mangle -o dist/baidubce-sdk.bundle.min.js",
    "docs": "cd example && npm run start",
    "publish:bos": "node scripts/publish_to_bos.js",
    "test": "jest",
    "test:legacy": "./test/run-all.sh",
    "lint": "eslint src/**/*.ts --fix",
    "format": "prettier --write src/**/*.ts"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/baidubce/bce-sdk-js.git"
  },
  "authors": [
    "leeight <leeight@gmail.com>",
    "木休大人 <523317421@qq.com>",
    "yangwei <yangwei9012@163.com>",
    "lurunze <lurunze@hotmail.com>"
  ],
  "license": "MIT",
  "dependencies": {
    "@nodelib/fs.walk": "^2.0.0",
    "async": "^3.2.5",
    "dayjs": "^1.11.10",
    "debug": "^3.1.0",
    "dotenv": "^16.4.5",
    "filesize": "^10.1.0",
    "lodash": "^4.17.21",
    "process": "^0.11.10",
    "q": "^1.5.1",
    "tslib": "^2.8.1",
    "underscore": "^1.9.1",
    "urlencode": "^1.1.0"
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm run type-check && npm test"
    }
  },
  "lint-staged": {
    "src/**/*.{ts,tsx}": [
      "eslint --fix",
      "prettier --write"
    ]
  },
  "devDependencies": {
    "@babel/core": "^7.24.0",
    "@babel/plugin-syntax-optional-chaining-assign": "^7.24.7",
    "@babel/plugin-transform-async-to-generator": "^7.23.3",
    "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
    "@babel/preset-env": "^7.24.0",
    "@jest/types": "^29.6.3",
    "@types/async": "^3.2.25",
    "@types/babel__core": "^7.20.5",
    "@types/babel__generator": "^7.27.0",
    "@types/babel__template": "^7.4.4",
    "@types/babel__traverse": "^7.28.0",
    "@types/debug": "^4.1.12",
    "@types/filesize": "^4.2.0",
    "@types/graceful-fs": "^4.1.9",
    "@types/istanbul-lib-coverage": "^2.0.6",
    "@types/istanbul-lib-report": "^3.0.3",
    "@types/istanbul-reports": "^3.0.4",
    "@types/jest": "^29.5.14",
    "@types/lodash": "^4.17.20",
    "@types/node": "^24.3.0",
    "@types/q": "^1.5.8",
    "@types/stack-utils": "^2.0.3",
    "@types/underscore": "^1.11.15",
    "@types/yargs": "^17.0.33",
    "@types/yargs-parser": "^21.0.3",
    "@typescript-eslint/eslint-plugin": "^7.18.0",
    "@typescript-eslint/parser": "^7.18.0",
    "babelify": "^10.0.0",
    "browserify": "10.2.6",
    "chalk": "^4.1.2",
    "coveralls": "^3.0.2",
    "eslint": "^8.57.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-prettier": "^5.1.3",
    "expect.js": "^0.3.1",
    "husky": "^9.0.11",
    "istanbul": "^0.4.5",
    "jest": "^29.7.0",
    "jest-config": "^29.7.0",
    "lint-staged": "^15.2.2",
    "mocha": "^5.2.0",
    "prettier": "^3.2.5",
    "rimraf": "^5.0.5",
    "ts-jest": "^29.1.2",
    "ts-node": "^10.9.2",
    "typescript": "^5.4.5",
    "uglify-js": "^3.17.4"
  }
}
