@mcastiello/simple-store
Version:
A simple state manager that can store data via a reducer function.
100 lines (99 loc) • 2.38 kB
JSON
{
"name": "@mcastiello/simple-store",
"version": "0.0.3",
"author": "Marco Castiello <marco.castiello@gmail.com>",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.modern.mjs",
"types": "dist/index.d.ts",
"repository": {
"url": "git@github.com:mcastiello/simple-store.git",
"type": "git"
},
"files": [
"./dist"
],
"typesVersions": {
"*": {
".": [
"dist/index.d.ts"
]
}
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.modern.mjs",
"default": "./dist/index.js"
}
},
"keywords": [
"Store",
"State",
"State Manager",
"Reducer",
"Svelte Store",
"Actions",
"Interceptors"
],
"engines": {
"node": ">20.0.0"
},
"scripts": {
"clean": "rimraf ./dist ./coverage",
"compile": "microbundle build --compress --no-sourcemap --format modern,cjs --tsconfig tsconfig.build.json",
"build": "yarn clean && yarn compile",
"test": "jest --coverage",
"quality:fix": "eslint --fix src/**/*.ts",
"quality:check": "eslint src/**/*.ts"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"microbundle": "^0.15.1",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"jest": {
"preset": "ts-jest",
"testPathIgnorePatterns": [
"/node_modules",
"/dist"
],
"transform": {
"^.+\\.ts?$": "ts-jest"
},
"testRegex": "src/.*\\.(test|spec)?\\.(ts)$",
"moduleFileExtensions": [
"js",
"ts"
],
"setupFiles": [
"./jest.setup.js"
],
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"src/**/*.ts",
"!src/types/*.ts",
"!src/**/index.ts",
"!src/**/mock.ts"
],
"moduleDirectories": [
"node_modules",
"src"
]
},
"dependencies": {
"@mcastiello/cancellable-promise": "^0.0.3"
}
}