Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Local scratch outputs
/artifacts/

# TypeScript incremental build outputs
*.tsbuildinfo
.idea
/node_modules/
**/yarn-error.log
Expand Down
1 change: 0 additions & 1 deletion apps/cyberstorm-remix/tsconfig.tsbuildinfo

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"postinstall": "preconstruct dev && manypkg check",
"build": "preconstruct build && yarn workspace @thunderstore/cyberstorm-theme build && yarn workspace @thunderstore/cyberstorm build && yarn workspace @thunderstore/ts-uploader build",
"plop": "plop",
"validate:exports": "node tools/scripts/validate_package_exports.mjs",
"test": "vitest run",
"test:watch": "vitest watch",
"coverage": "vitest run --coverage",
Expand Down
7 changes: 7 additions & 0 deletions packages/beta-switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-beta-switch.cjs.js",
"module": "dist/thunderstore-beta-switch.esm.js",
"types": "dist/thunderstore-beta-switch.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-beta-switch.esm.js",
"default": "./dist/thunderstore-beta-switch.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/beta-switch/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx"
Expand Down
7 changes: 7 additions & 0 deletions packages/cyberstorm-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"main": "dist/thunderstore-cyberstorm-forms.cjs.js",
"module": "dist/thunderstore-cyberstorm-forms.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-cyberstorm-forms.esm.js",
"default": "./dist/thunderstore-cyberstorm-forms.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/cyberstorm-forms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/dapper-fake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-dapper-fake.cjs.js",
"module": "dist/thunderstore-dapper-fake.esm.js",
"types": "dist/thunderstore-dapper-fake.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-dapper-fake.esm.js",
"default": "./dist/thunderstore-dapper-fake.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/dapper-fake/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx"
Expand Down
7 changes: 7 additions & 0 deletions packages/dapper-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"main": "dist/thunderstore-dapper-ts.cjs.js",
"module": "dist/thunderstore-dapper-ts.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-dapper-ts.esm.js",
"default": "./dist/thunderstore-dapper-ts.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/communities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
fetchCommunityList,
} from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getCommunities(
this: DapperTsInterface,
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/communityFilters.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchCommunityFilters } from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getCommunityFilters(
this: DapperTsInterface,
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/currentUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
fetchCurrentUserTeamPermissions,
} from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getCurrentUser(this: DapperTsInterface) {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/dynamicHTML.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchDynamicHTML } from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getDynamicHTML(
this: DapperTsInterface,
Expand Down
4 changes: 2 additions & 2 deletions packages/dapper-ts/src/methods/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { z } from "zod";

import {
ApiError,
PackageVersionDependenciesRequestQueryParams,
type PackageVersionDependenciesRequestQueryParams,
fetchPackageChangelog,
fetchPackagePermissions,
fetchPackageReadme,
Expand All @@ -15,7 +15,7 @@ import {
postPackageSubmission,
} from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getPackageChangelog(
this: DapperTsInterface,
Expand Down
6 changes: 3 additions & 3 deletions packages/dapper-ts/src/methods/packageListings.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { PackageListingType } from "@thunderstore/dapper/types";
import type { PackageListingType } from "@thunderstore/dapper/types";
import {
PackageListingsOrderingEnum,
PackageListingsRequestQueryParams,
type PackageListingsRequestQueryParams,
fetchCommunityPackageListings,
fetchNamespacePackageListings,
fetchPackageDependantsListings,
fetchPackageListingDetails,
} from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getPackageListings(
this: DapperTsInterface,
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/packageVersion.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchPackageVersionDetails } from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getPackageVersionDetails(
this: DapperTsInterface,
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/ratedPackages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchRatedPackages } from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getRatedPackages(this: DapperTsInterface) {
const data = await fetchRatedPackages({
Expand Down
2 changes: 1 addition & 1 deletion packages/dapper-ts/src/methods/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
teamCreate,
} from "@thunderstore/thunderstore-api";

import { DapperTsInterface } from "../index";
import type { DapperTsInterface } from "../index";

export async function getTeamDetails(
this: DapperTsInterface,
Expand Down
1 change: 1 addition & 0 deletions packages/dapper-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
1 change: 1 addition & 0 deletions packages/dapper/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx"
Expand Down
7 changes: 7 additions & 0 deletions packages/graph-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-graph-system.cjs.js",
"module": "dist/thunderstore-graph-system.esm.js",
"types": "dist/thunderstore-graph-system.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-graph-system.esm.js",
"default": "./dist/thunderstore-graph-system.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/graph-system/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/react-dnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-react-dnd.cjs.js",
"module": "dist/thunderstore-react-dnd.esm.js",
"types": "dist/thunderstore-react-dnd.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-react-dnd.esm.js",
"default": "./dist/thunderstore-react-dnd.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/react-dnd/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
1 change: 0 additions & 1 deletion packages/thunderstore-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"module": "dist/thunderstore-thunderstore-api.esm.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/thunderstore-thunderstore-api.esm.js",
"default": "./dist/thunderstore-thunderstore-api.cjs.js"
},
Expand Down
1 change: 1 addition & 0 deletions packages/thunderstore-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": false,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/ts-api-react-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-ts-api-react-actions.cjs.js",
"module": "dist/thunderstore-ts-api-react-actions.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-ts-api-react-actions.esm.js",
"default": "./dist/thunderstore-ts-api-react-actions.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
5 changes: 3 additions & 2 deletions packages/ts-api-react-actions/src/useApiAction.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ApiEndpointProps } from "@thunderstore/thunderstore-api";
import { ApiEndpoint, useApiCall } from "@thunderstore/ts-api-react";
import type { ApiEndpointProps } from "@thunderstore/thunderstore-api";
import type { ApiEndpoint } from "@thunderstore/ts-api-react";
import { useApiCall } from "@thunderstore/ts-api-react";

export type UseApiActionArgs<Params, QueryParams, Data, Return> = {
endpoint: ApiEndpoint<Params, QueryParams, Data, Return>;
Expand Down
1 change: 1 addition & 0 deletions packages/ts-api-react-actions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx"
Expand Down
7 changes: 7 additions & 0 deletions packages/ts-api-react-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-ts-api-react-forms.cjs.js",
"module": "dist/thunderstore-ts-api-react-forms.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-ts-api-react-forms.esm.js",
"default": "./dist/thunderstore-ts-api-react-forms.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/ts-api-react-forms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/ts-api-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-ts-api-react.cjs.js",
"module": "dist/thunderstore-ts-api-react.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-ts-api-react.esm.js",
"default": "./dist/thunderstore-ts-api-react.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-api-react/src/useApiCall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiEndpointProps } from "@thunderstore/thunderstore-api";
import type { ApiEndpointProps } from "@thunderstore/thunderstore-api";

export type ApiEndpoint<Params, QueryParams, Data, Return> = (
props: ApiEndpointProps<Params, QueryParams, Data>
Expand Down
1 change: 1 addition & 0 deletions packages/ts-api-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/ts-uploader-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-ts-uploader-react.cjs.js",
"module": "dist/thunderstore-ts-uploader-react.esm.js",
"types": "dist/thunderstore-ts-uploader-react.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-ts-uploader-react.esm.js",
"default": "./dist/thunderstore-ts-uploader-react.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/ts-uploader-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
7 changes: 7 additions & 0 deletions packages/typed-event-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"main": "dist/thunderstore-typed-event-emitter.cjs.js",
"module": "dist/thunderstore-typed-event-emitter.esm.js",
"types": "dist/thunderstore-typed-event-emitter.cjs.d.ts",
"exports": {
".": {
"module": "./dist/thunderstore-typed-event-emitter.esm.js",
"default": "./dist/thunderstore-typed-event-emitter.cjs.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions packages/typed-event-emitter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
Expand Down
Loading
Loading