Skip to content

Commit

Permalink
feat: restore typesVersions (#2878)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored May 31, 2024
1 parent f3180fe commit 7f07e9d
Show file tree
Hide file tree
Showing 23 changed files with 255 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"release:check": "changeset status --verbose --since=origin/main",
"release:publish": "pnpm install && pnpm build && changeset publish",
"release:version": "changeset version && pnpm install --lockfile-only && pnpm run changelog:generate",
"sort-package-json": "npx sort-package-json package.json 'packages/*/package.json' 'templates/*/package.json' 'templates/*/packages/*/package.json' 'examples/*/package.json' 'examples/*/packages/*/package.json' 'e2e/*/package.json' 'e2e/*/packages/*/package.json' 'docs/package.json'",
"sort-package-json": "npx sort-package-json package.json 'packages/*/package.json' 'templates/*/package.json' 'templates/*/packages/*/package.json' 'examples/*/package.json' 'examples/*/packages/*/package.json' 'e2e/*/package.json' 'e2e/*/packages/*/package.json' 'docs/package.json' 'test/*/package.json'",
"test": "pnpm run --recursive test",
"test:ci": "pnpm run --recursive --parallel test:ci",
"type-stats-repo": "attest stats packages/*"
Expand Down
7 changes: 7 additions & 0 deletions packages/abi-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"bin": {
"abi-ts": "./dist/abi-ts.js"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/block-logs-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"bin": {
"mud": "./dist/mud.js"
},
Expand Down
31 changes: 31 additions & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,37 @@
"./kms": "./dist/kms.js",
"./tsconfig.base.json": "./tsconfig.base.json"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"actions": [
"./dist/actions.d.ts"
],
"chains": [
"./dist/chains.d.ts"
],
"codegen": [
"./dist/codegen.d.ts"
],
"errors": [
"./dist/errors.d.ts"
],
"foundry": [
"./dist/foundry.d.ts"
],
"type-utils": [
"./dist/type-utils.d.ts"
],
"utils": [
"./dist/utils.d.ts"
],
"kms": [
"./dist/kms.d.ts"
]
}
},
"files": [
"dist",
"tsconfig.base.json"
Expand Down
1 change: 1 addition & 0 deletions packages/common/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Please take care editing this! All of our packages and templates extend this base config.
{
"compilerOptions": {
"module": "esnext",
Expand Down
19 changes: 19 additions & 0 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,25 @@
"./register": "./dist/deprecated/register.js",
"./node": "./dist/deprecated/node.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"internal": [
"./dist/internal.d.ts"
],
"library": [
"./dist/deprecated/library.d.ts"
],
"register": [
"./dist/deprecated/register.d.ts"
],
"node": [
"./dist/deprecated/node.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/faucet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/src/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/src/index.d.ts"
]
}
},
"bin": {
"faucet-server": "./dist/bin/faucet-server.js"
},
Expand Down
10 changes: 8 additions & 2 deletions packages/gas-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"bin": {
"gas-report": "./dist/gas-report.js"
},
"files": [
"dist",
"out",
"src",
"foundry.toml"
"src"
],
"scripts": {
"build": "tsup",
Expand Down
10 changes: 10 additions & 0 deletions packages/protocol-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
".": "./dist/index.js",
"./internal": "./dist/internal.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"internal": [
"./dist/internal.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
10 changes: 10 additions & 0 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
".": "./dist/index.js",
"./internal": "./dist/internal.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"internal": [
"./dist/internal.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
10 changes: 10 additions & 0 deletions packages/recs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
".": "./dist/index.js",
"./deprecated": "./dist/deprecated/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"deprecated": [
"./dist/deprecated/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
14 changes: 13 additions & 1 deletion packages/schema-type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,22 @@
"./internal": "./dist/internal.js",
"./deprecated": "./dist/deprecated.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"internal": [
"./dist/internal.d.ts"
],
"deprecated": [
"./dist/deprecated.d.ts"
]
}
},
"files": [
"dist",
"out",
"foundry.toml",
"src"
],
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/solhint-config-mud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/solhint-plugin-mud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/store-indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/src/index.d.ts"
]
}
},
"bin": {
"postgres-decoded-indexer": "./dist/bin/postgres-decoded-indexer.js",
"postgres-frontend": "./dist/bin/postgres-frontend.js",
Expand Down
28 changes: 28 additions & 0 deletions packages/store-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,34 @@
"./trpc-indexer": "./dist/trpc-indexer/index.js",
"./zustand": "./dist/zustand/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"indexer-client": [
"./dist/indexer-client/index.d.ts"
],
"postgres": [
"./dist/postgres/index.d.ts"
],
"postgres-decoded": [
"./dist/postgres-decoded/index.d.ts"
],
"recs": [
"./dist/recs/index.d.ts"
],
"sqlite": [
"./dist/sqlite/index.d.ts"
],
"trpc-indexer": [
"./dist/trpc-indexer/index.d.ts"
],
"zustand": [
"./dist/zustand/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
26 changes: 25 additions & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,34 @@
"./register": "./dist/register.js",
"./out/*": "./out/*"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
],
"internal": [
"./dist/internal.d.ts"
],
"mud.config": [
"./dist/mud.config.d.ts"
],
"codegen": [
"./dist/codegen.d.ts"
],
"config": [
"./dist/config.d.ts"
],
"config/v2": [
"./dist/config/v2.d.ts"
],
"register": [
"./dist/register.d.ts"
]
}
},
"files": [
"dist",
"out",
"foundry.toml",
"src"
],
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
"exports": {
".": "./dist/index.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down
Loading

0 comments on commit 7f07e9d

Please sign in to comment.