-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (144 loc) · 4.73 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"version": "2.0.4",
"name": "@raiz/react-simple-store",
"description": "basic store for react & vanilla js",
"keywords": [
"react",
"reactjs",
"redux",
"state",
"store"
],
"author": "n king",
"license": "ISC",
"private": false,
"homepage": "https://github.com/ncking/react-simple-store",
"repository": "github:ncking/react-simple-store",
"bugs": "https://github.com/ncking/react-simple-store/issues",
"type": "module",
"sideEffects": false,
"main": "./dist/index.cjs",
"module": "./dist/index.module.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.module.js",
"default": "./dist/index.cjs"
},
"./utils": {
"types": "./utils/dist/index.d.ts",
"module": "./utils/dist/index.module.js",
"default": "./utils/dist/index.cjs"
},
"./redux": {
"types": "./redux/dist/redux/src/index.d.ts",
"module": "./redux/dist/index.module.js",
"default": "./redux/dist/index.cjs"
},
"./package.json": "./package.json",
"./redux/package.json": "./redux/package.json",
"./utils/package.json": "./utils/package.json"
},
"engines": {
"node": ">=18"
},
"files": [
"dist",
"src",
"redux/dist",
"redux/src",
"redux/package.json",
"utils/dist",
"utils/src",
"utils/package.json"
],
"scripts": {
"build": "npm run build:core && npm run build:redux && npm run build:utils",
"build:core": "microbundle --entry src/index.ts --no-sourcemap --tsconfig ./tsconfig.json -o dist/index.js",
"build:utils": "microbundle --entry src/index.ts --cwd utils --no-sourcemap --jsx React.createElement --tsconfig ./utils/tsconfig.json -o dist/index.js",
"build:redux": "microbundle --entry src/index.ts --cwd redux --no-sourcemap --jsx React.createElement --tsconfig ./redux/tsconfig.json -o dist/index.js",
"clean": "shx rm -rf ./dist */dist/ coverage",
"format": "prettier --write \"{src,test}/**/*.{js,ts,tsx}\"",
"lint": "eslint src --ext ts,tsx,js",
"prepare": "npm run clean && npm run build && check-export-map && bundlewatch",
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --verbose"
},
"bundlewatch": {
"files": [
{
"path": "./dist/index.module.js",
"maxSize": "560 B"
},
{
"path": "./utils/dist/index.module.js",
"maxSize": "250 B"
},
{
"path": "./redux/dist/index.module.js",
"maxSize": "330 B"
}
]
},
"peerDependencies": {
"@types/react": "^16.8 || ^17.0 || ^18.0",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"react-native": {
"optional": true
}
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.15.5",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.15.4",
"@babel/plugin-proposal-export-namespace-from": "^7.12.13",
"@babel/plugin-proposal-function-sent": "^7.12.13",
"@babel/plugin-proposal-json-strings": "^7.13.8",
"@babel/plugin-proposal-numeric-separator": "^7.12.13",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-throw-expressions": "^7.12.13",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-syntax-top-level-await": "^7.14.5",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/plugin-transform-react-constant-elements": "^7.13.13",
"@babel/plugin-transform-react-inline-elements": "^7.12.13",
"@babel/plugin-transform-react-jsx": "^7.14.9",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/plugin-transform-typescript": "^7.15.4",
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.21.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.1",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"babel-plugin-module-resolver": "^5.0.0",
"bundlewatch": "^0.3.3",
"check-export-map": "^1.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"microbundle": "^0.15.1",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"shx": "^0.3.4",
"ts-jest": "^29.1.0",
"typescript": "^5.4.5"
}
}