UNPKG

@gdwc/drupal-state

Version:

A simple data store to manage application state sourced from Drupal's JSON:API.

124 lines (123 loc) 3.53 kB
{ "name": "@gdwc/drupal-state", "version": "4.2.3", "files": [ "dist" ], "type": "module", "types": "./dist/lib.d.ts", "module": "./dist/lib.js", "main": "./dist/lib.cjs", "exports": { ".": { "import": { "types": "./dist/lib.d.ts", "default": "./dist/lib.js" }, "require": { "types": "./dist/lib.d.cts", "default": "./dist/lib.cjs" } }, "./*": { "import": { "types": "./dist/src/fetch/*.d.ts", "default": "./dist/src/fetch/*.js" }, "require": { "types": "./dist/src/fetch/*.d.cts", "default": "./dist/src/fetch/*.cjs" } }, "./DrupalState": { "import": { "types": "./dist/src/DrupalState.d.ts", "default": "./dist/src/DrupalState.js" }, "require": { "types": "./dist/src/DrupalState.d.cts", "default": "./dist/src/DrupalState.cjs" } } }, "prettier": { "singleQuote": true, "arrowParens": "avoid", "proseWrap": "always" }, "lint-staged": { "*.{js,ts,md,mdx}": "prettier --write" }, "scripts": { "dev": "vite", "build": "tsup", "serve": "vite preview", "typedoc": "typedoc", "test": "jest --coverage", "test:ci": "JEST_JUNIT_OUTPUT_DIR='./test-results/jest' jest --ci --reporters=default --reporters=jest-junit", "eslint": "eslint --ext .js,.ts src --ignore-path .gitignore", "eslint:fix": "eslint --ext .js,.ts src --fix --ignore-path .gitignore", "prettier": "prettier \"**/*.{js,ts,md}\" --check --ignore-path .gitignore", "prettier:fix": "prettier \"**/*.{js,ts,md}\" --write --ignore-path .gitignore", "lint-staged": "lint-staged", "prepare": "npm run build && husky install", "postinstall": "patch-package", "release": "dotenv release-it --", "dpdm": "dpdm lib.ts", "rollup": "rollup -c", "build:docs": "npm run astro:build && npm run typedoc", "astro:dev": "astro dev --root web", "astro:build": "astro build --config astro.config.prod.mjs --root web", "astro:preview": "astro preview --project-root web" }, "repository": { "type": "git", "url": "https://git.drupalcode.org/project/drupal_state.git" }, "homepage": "https://www.drupal.org/project/drupal_state", "bugs": { "url": "https://www.drupal.org/project/issues/drupal_state" }, "keywords": [ "drupal", "decoupled", "zustand" ], "license": "GPL-2.0-or-later", "devDependencies": { "@astrojs/preact": "^1.2.0", "@astrojs/react": "^1.2.1", "@docsearch/react": "^3.2.2", "@snowpack/plugin-dotenv": "^2.2.0", "@types/isomorphic-fetch": "0.0.35", "@typescript-eslint/eslint-plugin": "^4.29.1", "@typescript-eslint/parser": "^4.29.1", "@vitejs/plugin-legacy": "^1.6.1", "astro": "^1.0.0", "dotenv-cli": "^4.0.0", "dpdm": "^3.7.1", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "fetch-mock-jest": "^1.5.1", "husky": "^7.0.1", "jest": "^27.0.6", "jest-junit": "^12.2.0", "lint-staged": "^11.1.2", "node-fetch-jest": "npm:node-fetch@^2.6.9", "prettier": "2.3.2", "release-it": "^14.11.5", "ts-jest": "^27.0.5", "tsup": "^7.1.0", "typedoc": "^0.21.6", "typescript": "~4.3.2", "vite": "^2.4.4" }, "dependencies": { "deepmerge": "^4.3.1", "drupal-jsonapi-params": "^1.2.2", "isomorphic-fetch": "^3.0.0", "jsona": "1.9.7", "patch-package": "^6.4.7", "zustand": "3.7.2" } }