Skip to content

Commit

Permalink
Added /types export to all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
NuroDev committed Feb 24, 2024
1 parent a6f0ba1 commit d87f87e
Show file tree
Hide file tree
Showing 24 changed files with 78 additions and 54 deletions.
8 changes: 6 additions & 2 deletions packages/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
4 changes: 0 additions & 4 deletions packages/hackernews/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ const router = u.router({
});

export type HackerNewsRouter = typeof router;

export * from "./items/items.types";
export * from "./liveData/liveData.types";
export * from "./users/users.types";
3 changes: 3 additions & 0 deletions packages/hackernews/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./items/items.types";
export * from "./liveData/liveData.types";
export * from "./users/users.types";
1 change: 1 addition & 0 deletions packages/hackernews/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down
8 changes: 6 additions & 2 deletions packages/jsonplaceholder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
7 changes: 0 additions & 7 deletions packages/jsonplaceholder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,3 @@ const singleResourceRouter = singleResource.router({
const router = allResourcesRouter.merge(singleResourceRouter);

export type JSONPlaceholderRouter = typeof router;

export * from "./album/album.types";
export * from "./comment/comment.types";
export * from "./photo/photo.types";
export * from "./post/post.types";
export * from "./todo/todo.types";
export * from "./user/user.types";
6 changes: 6 additions & 0 deletions packages/jsonplaceholder/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from "./album/album.types";
export * from "./comment/comment.types";
export * from "./photo/photo.types";
export * from "./post/post.types";
export * from "./todo/todo.types";
export * from "./user/user.types";
1 change: 1 addition & 0 deletions packages/jsonplaceholder/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down
8 changes: 6 additions & 2 deletions packages/lil.apis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
4 changes: 0 additions & 4 deletions packages/lil.apis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ const router = u.router({
});

export type LilRouter = typeof router;

export * from "./news/news.types";
export * from "./stocks/stocks.types";
export * from "./weather/weather.types";
3 changes: 3 additions & 0 deletions packages/lil.apis/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./news/news.types";
export * from "./stocks/stocks.types";
export * from "./weather/weather.types";
1 change: 1 addition & 0 deletions packages/lil.apis/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down
8 changes: 6 additions & 2 deletions packages/logsnag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
3 changes: 0 additions & 3 deletions packages/logsnag/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ const router = u.router({
});

export type LogSnagRouter = typeof router;

export * from "./log/log.types";
export * from "./insight/insight.types";
2 changes: 2 additions & 0 deletions packages/logsnag/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./log/log.types";
export * from "./insight/insight.types";
1 change: 1 addition & 0 deletions packages/logsnag/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down
8 changes: 6 additions & 2 deletions packages/spacex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
16 changes: 0 additions & 16 deletions packages/spacex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,3 @@ const router = u.router({
});

export type SpaceXRouter = typeof router;

export * from "./_shared/_shared.types";
export * from "./capsules/capsules.types";
export * from "./company/company.types";
export * from "./cores/cores.types";
export * from "./crew/crew.types";
export * from "./dragons/dragons.types";
export * from "./history/history.types";
export * from "./landpads/landpads.types";
export * from "./launches/launches.types";
export * from "./launchpads/launchpads.types";
export * from "./payloads/payloads.types";
export * from "./roadster/roadster.types";
export * from "./rockets/rockets.types";
export * from "./ships/ships.types";
export * from "./starlink/starlink.types";
15 changes: 15 additions & 0 deletions packages/spacex/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export * from "./_shared/_shared.types";
export * from "./capsules/capsules.types";
export * from "./company/company.types";
export * from "./cores/cores.types";
export * from "./crew/crew.types";
export * from "./dragons/dragons.types";
export * from "./history/history.types";
export * from "./landpads/landpads.types";
export * from "./launches/launches.types";
export * from "./launchpads/launchpads.types";
export * from "./payloads/payloads.types";
export * from "./roadster/roadster.types";
export * from "./rockets/rockets.types";
export * from "./ships/ships.types";
export * from "./starlink/starlink.types";
1 change: 1 addition & 0 deletions packages/spacex/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down
8 changes: 6 additions & 2 deletions packages/swapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index",
"./zod": "./dist/zod",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./types": "./dist/types",
"./zod": "./dist/zod"
},
"typesVersions": {
"*": {
"types": [
"./dist/types.d.ts"
],
"zod": [
"./dist/zod.d.ts"
]
Expand Down
8 changes: 0 additions & 8 deletions packages/swapi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,3 @@ const router = u.router({
});

export type SwapiRouter = typeof router;

export * from "./films/films.types";
export * from "./people/people.types";
export * from "./planets/planets.types";
export * from "./root/root.types";
export * from "./species/species.types";
export * from "./starships/starships.types";
export * from "./vehicles/vehicles.types";
7 changes: 7 additions & 0 deletions packages/swapi/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export * from "./films/films.types";
export * from "./people/people.types";
export * from "./planets/planets.types";
export * from "./root/root.types";
export * from "./species/species.types";
export * from "./starships/starships.types";
export * from "./vehicles/vehicles.types";
1 change: 1 addition & 0 deletions packages/swapi/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig(({ watch = false }) => ({
},
entry: {
index: "src/index.ts",
types: "src/types.ts",
zod: "src/zod.ts",
},
format: ["cjs", "esm"],
Expand Down

0 comments on commit d87f87e

Please sign in to comment.