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
2 changes: 2 additions & 0 deletions .github/workflows/open-source-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'plugins/**'
- 'omarchy/**'
- 'raycast/**'
- 'tests/raycast/**'
- 'metrix/**'
- 'Makefile'
- '.github/workflows/open-source-checks.yml'
Expand All @@ -21,6 +22,7 @@ on:
- 'plugins/**'
- 'omarchy/**'
- 'raycast/**'
- 'tests/raycast/**'
- 'metrix/**'
- 'Makefile'
- '.github/workflows/open-source-checks.yml'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test-metrix:
node --test metrix/tests/*.test.mjs

test-raycast:
cd raycast && npm ci && npm test && npm run lint && npm run build && npm run typecheck
cd raycast && npm ci && npx --yes tsx@4.23.15 --test ../tests/raycast/*.test.ts && npm run lint && npm run build && npm run typecheck

validate: test
git diff --check
5 changes: 4 additions & 1 deletion docs/raycast.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
- Follow Raycast's Store rules: US English UI, Title Case action titles,
`CHANGELOG.md` with `{PR_MERGE_DATE}`, `package-lock.json` committed,
`npm run lint` and `npm run build` clean before publishing.
- Keep tests and other dev material out of `raycast/`: the Store reviewer
asked for only the extension, `README.md`, `CHANGELOG.md`, `media/` and
`metadata/`. Tests live in `tests/raycast/` and run with `npx tsx`.
- Publish only from the owner's Mac mini (see Releasing). Never from CI or a
fresh machine, and never store a GitHub token.

Expand All @@ -25,7 +28,7 @@
```sh
npm install
npm run dev # opens the extension in Raycast
npm test # search, catalog and quote tests
make -C .. test-raycast # tests (in tests/raycast/, outside the Store folder), lint, build, typecheck
npm run lint
```

Expand Down
35 changes: 0 additions & 35 deletions raycast/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions raycast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{
"name": "search-symbol",
"title": "Search Symbol",
"subtitle": "Pulse",
"description": "Find a stock, index or crypto pair by ticker or by name in English, Chinese, Japanese or Korean, and see its price and today's chart.",
"mode": "view",
"keywords": [
Expand Down Expand Up @@ -78,7 +79,6 @@
"@types/react": "19.3.0",
"eslint": "^9.22.0",
"prettier": "^3.5.3",
"tsx": "^4.23.15",
"typescript": "^5.8.2"
},
"scripts": {
Expand All @@ -87,7 +87,6 @@
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"typecheck": "tsc --noEmit",
"test": "tsx --test tests/*.test.ts",
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
"publish": "npx @raycast/api@latest publish"
}
Expand Down
2 changes: 1 addition & 1 deletion raycast/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 22",
"include": ["src/**/*", "tests/**/*", "raycast-env.d.ts"],
"include": ["src/**/*", "raycast-env.d.ts"],
"compilerOptions": {
"lib": ["ES2023"],
"module": "commonjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mkdtemp, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { test } from "node:test";
import { CATALOG_URL, CatalogStore, DAY_MS } from "../src/lib/catalog";
import { CATALOG_URL, CatalogStore, DAY_MS } from "../../raycast/src/lib/catalog";

const catalog = (generatedAt: string, count: number) =>
JSON.stringify({
Expand Down
6 changes: 3 additions & 3 deletions raycast/tests/quotes.test.ts → tests/raycast/quotes.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import assert from "node:assert/strict";
import { test } from "node:test";
import { chartSvg } from "../src/lib/chart";
import { formatAxis, formatChange, formatNumber, formatPrice } from "../src/lib/format";
import { decodeSpark, decodeYahooChart } from "../src/lib/quotes";
import { chartSvg } from "../../raycast/src/lib/chart";
import { formatAxis, formatChange, formatNumber, formatPrice } from "../../raycast/src/lib/format";
import { decodeSpark, decodeYahooChart } from "../../raycast/src/lib/quotes";

const now = Date.UTC(2026, 10, 2, 16, 0);
const start = Date.UTC(2026, 10, 2, 14, 30) / 1000;
Expand Down
4 changes: 2 additions & 2 deletions raycast/tests/search.test.ts → tests/raycast/search.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { test } from "node:test";
import { SymbolIndex, displayName, fold, readerLanguage, type CatalogDocument } from "../src/lib/search";
import { normalizeTypedSymbol, yahooSymbol } from "../src/lib/symbols";
import { SymbolIndex, displayName, fold, readerLanguage, type CatalogDocument } from "../../raycast/src/lib/search";
import { normalizeTypedSymbol, yahooSymbol } from "../../raycast/src/lib/symbols";

const catalog: CatalogDocument = {
schema: 1,
Expand Down
Loading