From 6ce866f48ce46348bdf778367cc0f7765a0c66b9 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 7 Jul 2025 15:11:18 -0700 Subject: [PATCH] Include Grats in turbo.json --- .github/workflows/ci.yml | 6 +++--- packages/skin-database/api/graphql/schema.graphql | 4 ++-- packages/skin-database/api/graphql/schema.ts | 4 ++-- packages/skin-database/scripts/reload.sh | 4 ++-- packages/winamp-eqf/simple.test.ts | 3 +++ turbo.json | 8 +++++++- 6 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 packages/winamp-eqf/simple.test.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fce335a..722a9d42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,10 @@ jobs: uses: pnpm/action-setup@v2 with: version: 9.12.0 - - name: Use Node.js 22.x + - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 20.x cache: "pnpm" - name: Install Dependencies run: pnpm install --frozen-lockfile @@ -57,7 +57,7 @@ jobs: version: 9.12.0 - uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 20.x registry-url: https://registry.npmjs.org/ cache: "pnpm" - name: Install dependencies diff --git a/packages/skin-database/api/graphql/schema.graphql b/packages/skin-database/api/graphql/schema.graphql index 737009b4..9eb0c82c 100644 --- a/packages/skin-database/api/graphql/schema.graphql +++ b/packages/skin-database/api/graphql/schema.graphql @@ -161,7 +161,7 @@ type ArchiveFile { serverless Cloudflare function which tries to exctact the file on the fly. It may not work for all files. """ - url: String @semanticNonNull + url: String } """A classic Winamp skin""" @@ -411,7 +411,7 @@ type Query { """ node(id: ID!): Node """ - Search the database using the Algolia search index used by the Museum. + Search the database using SQLite's FTS (full text search) index. Useful for locating a particular skin. """ diff --git a/packages/skin-database/api/graphql/schema.ts b/packages/skin-database/api/graphql/schema.ts index 4e49b632..7b9f927a 100644 --- a/packages/skin-database/api/graphql/schema.ts +++ b/packages/skin-database/api/graphql/schema.ts @@ -316,7 +316,7 @@ export function getSchema(): GraphQLSchema { name: "url", type: GraphQLString, resolve(source) { - return assertNonNull(source.getUrl()); + return source.getUrl(); } } }; @@ -1002,7 +1002,7 @@ export function getSchema(): GraphQLSchema { } }, search_classic_skins: { - description: "Search the database using the Algolia search index used by the Museum.\n\nUseful for locating a particular skin.", + description: "Search the database using SQLite's FTS (full text search) index.\n\nUseful for locating a particular skin.", name: "search_classic_skins", type: new GraphQLList(ClassicSkinType), args: { diff --git a/packages/skin-database/scripts/reload.sh b/packages/skin-database/scripts/reload.sh index 4d36298c..4c840ff2 100755 --- a/packages/skin-database/scripts/reload.sh +++ b/packages/skin-database/scripts/reload.sh @@ -1,10 +1,10 @@ #!/bin/bash set -euo pipefail -# Switch to Node 22 +# Switch to Node 20 export NVM_DIR="$HOME/.nvm" source "$NVM_DIR/nvm.sh" -nvm use 22 +nvm use 20 # Install dependencies yarn install --frozen-lockfile diff --git a/packages/winamp-eqf/simple.test.ts b/packages/winamp-eqf/simple.test.ts new file mode 100644 index 00000000..d91b54ff --- /dev/null +++ b/packages/winamp-eqf/simple.test.ts @@ -0,0 +1,3 @@ +test("simple test", () => { + expect(1 + 1).toBe(2); +}); diff --git a/turbo.json b/turbo.json index 8dee9a3a..4ef5097c 100644 --- a/turbo.json +++ b/turbo.json @@ -31,7 +31,12 @@ "webamp-docs#type-check": { "dependsOn": ["webamp#build-library"] }, - "skin-database#type-check": {}, + "skin-database#type-check": { + "dependsOn": ["skin-database#grats"] + }, + "skin-database#grats": { + "outputs": ["api/graphql/schema.graphql", "api/graphql/schema.ts"] + }, "ani-cursor#test": { "outputs": [] }, @@ -46,6 +51,7 @@ "outputs": [] }, "skin-database#test": { + "dependsOn": ["skin-database#grats"], "outputs": [] }, "webamp#integration-tests": {