Skip to content

Commit b4c71a4

Browse files
committed
ProxyState (#56)
* sv * extract State * cases for ProxyState * remove adapter * extract testUtils * more cases * comment for `$` of `ProxyState` * typo * remove useless `declare` * fix test * remove useless interface Bindable
1 parent 47bc321 commit b4c71a4

19 files changed

+1185
-1272
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
setupFiles: [
55
'<rootDir>/src/testSetup.ts'
66
],
7+
roots: ['<rootDir>/src'],
78
globals: {
89
'ts-jest': {
910
// 使用特定的 tsconfig,指定 compile target 为 es6

package-lock.json

Lines changed: 16 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
"module": "esm/index.js",
1111
"scripts": {
1212
"clean": "rm -rf ./esm ./lib ./docs",
13+
"lint": "tsc --noEmit",
1314
"test": "jest",
15+
"validate": "npm run lint && npm run test",
1416
"coverage": "rm -rf coverage && jest --coverage",
1517
"build:esm": "rm -rf ./esm && tsc --module es6 --outDir ./esm",
1618
"build:lib": "rm -rf ./lib && tsc",
1719
"build:doc": "rm -rf ./docs && typedoc && cp -r ./assets ./docs",
1820
"build": "npm run build:esm && npm run build:lib",
1921
"prepublishOnly": "npm run test && npm run build",
20-
"ci": "tsc --noEmit && npm run coverage && npm run build && npm run build:doc"
22+
"ci": "npm run lint && npm run coverage && npm run build && npm run build:doc"
2123
},
2224
"keywords": [
2325
"form",
@@ -39,7 +41,10 @@
3941
"ts-jest": "~26.4.2",
4042
"typedoc": "~0.21.6",
4143
"typedoc-twilio-theme": "^1.0.0",
42-
"typescript": "~4.1.5"
44+
"typescript": "^4.1.5"
4345
},
44-
"dependencies": {}
46+
"dependencies": {},
47+
"engines": {
48+
"node": ">=12.0.0"
49+
}
4550
}

src/adapter/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)