Skip to content

Commit 527e9b4

Browse files
committed
Migrate contarcts implementation from FF repo
1 parent 52fcac8 commit 527e9b4

File tree

13 files changed

+725
-1
lines changed

13 files changed

+725
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"@arethetypeswrong/cli": "^0.15.3",
1212
"@changesets/cli": "^2.24.1",
1313
"@farfetched/core": "^0.8.13",
14+
"@farfetched/runtypes": "^0.12.4",
15+
"@farfetched/superstruct": "^0.12.4",
1416
"@playwright/test": "^1.32.2",
1517
"@reduxjs/toolkit": "^2.0.1",
1618
"@size-limit/file": "^7.0.8",
@@ -27,6 +29,7 @@
2729
"redux-saga": "^1.2.3",
2830
"runtypes": "^6.7.0",
2931
"size-limit": "^7.0.8",
32+
"superstruct": "^2.0.2",
3033
"typescript": "5.1.6",
3134
"vite": "4.4.9",
3235
"vite-plugin-dts": "^3.8.3",

packages/contract/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# @withease/contract

packages/contract/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @withease/web-api
2+
3+
Read documentation [here](https://withease.effector.dev/web-api/).

packages/contract/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@withease/contract",
3+
"version": "0.0.1",
4+
"license": "MIT",
5+
"scripts": {
6+
"test:run": "vitest run --typecheck",
7+
"build": "vite build",
8+
"size": "size-limit",
9+
"publint": "node ../../tools/publint.mjs",
10+
"typelint": "attw --pack"
11+
},
12+
"type": "module",
13+
"files": [
14+
"dist"
15+
],
16+
"main": "./dist/contract.cjs",
17+
"module": "./dist/contract.js",
18+
"types": "./dist/contract.d.ts",
19+
"exports": {
20+
".": {
21+
"import": {
22+
"types": "./dist/contract.d.ts",
23+
"default": "./dist/contract.js"
24+
},
25+
"require": {
26+
"types": "./dist/contract.d.cts",
27+
"default": "./dist/contract.cjs"
28+
}
29+
}
30+
},
31+
"size-limit": [
32+
{
33+
"path": "./dist/contract.js",
34+
"limit": "603 B"
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)