Skip to content

Commit 3f13db8

Browse files
josephperrottthePunderWoman
authored andcommitted
ci: update algolia synonym updater to use node directly rather than tsx
With new version of node we can import ts files directly in our scripts rather than using tsx
1 parent 724e917 commit 3f13db8

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,6 @@ jobs:
224224
configPath: 'adev/firebase.json'
225225
distDir: 'dist/bin/adev/dist'
226226
- name: Update Algolia synonym record
227-
run: pnpm tsx adev/scripts/synonyms/update-synonyms.mts
227+
run: node adev/scripts/synonyms/update-synonyms.mts
228228
env:
229229
ALGOLIA_KEY: ${{ secrets.ALGOLIA_SYNONYM_MANAGER }}

adev/scripts/synonyms/algolia-synonyms.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {SynonymHit} from 'algoliasearch';
9+
import {type SynonymHit} from 'algoliasearch';
1010

1111
/**
1212
* List of synonyms to upload to algolia.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"forceConsistentCasingInFileNames": true,
5+
"strict": true,
6+
"noImplicitOverride": true,
7+
"noPropertyAccessFromIndexSignature": true,
8+
"noImplicitReturns": true,
9+
"noFallthroughCasesInSwitch": true,
10+
"sourceMap": true,
11+
"declaration": false,
12+
"moduleResolution": "bundler",
13+
"preserveSymlinks": true,
14+
"importHelpers": true,
15+
"target": "ES2022",
16+
"module": "ES2022",
17+
"allowImportingTsExtensions": true,
18+
"lib": ["ES2022"],
19+
"types": [],
20+
"skipLibCheck": true
21+
}
22+
}

adev/scripts/synonyms/update-synonyms.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import {algoliasearch} from 'algoliasearch';
10-
import synonyms from './algolia-synonyms.mjs';
10+
import synonyms from './algolia-synonyms.mts';
1111

1212
/** The name of the index being updated. */
1313
const INDEX_NAME = 'angular_v17';

0 commit comments

Comments
 (0)