mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
This commit is contained in:
parent
724e917f7a
commit
3f13db87e2
4 changed files with 25 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -224,6 +224,6 @@ jobs:
|
|||
configPath: 'adev/firebase.json'
|
||||
distDir: 'dist/bin/adev/dist'
|
||||
- name: Update Algolia synonym record
|
||||
run: pnpm tsx adev/scripts/synonyms/update-synonyms.mts
|
||||
run: node adev/scripts/synonyms/update-synonyms.mts
|
||||
env:
|
||||
ALGOLIA_KEY: ${{ secrets.ALGOLIA_SYNONYM_MANAGER }}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {SynonymHit} from 'algoliasearch';
|
||||
import {type SynonymHit} from 'algoliasearch';
|
||||
|
||||
/**
|
||||
* List of synonyms to upload to algolia.
|
||||
|
|
|
|||
22
adev/scripts/synonyms/tsconfig.json
Normal file
22
adev/scripts/synonyms/tsconfig.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "bundler",
|
||||
"preserveSymlinks": true,
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"allowImportingTsExtensions": true,
|
||||
"lib": ["ES2022"],
|
||||
"types": [],
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import {algoliasearch} from 'algoliasearch';
|
||||
import synonyms from './algolia-synonyms.mjs';
|
||||
import synonyms from './algolia-synonyms.mts';
|
||||
|
||||
/** The name of the index being updated. */
|
||||
const INDEX_NAME = 'angular_v17';
|
||||
|
|
|
|||
Loading…
Reference in a new issue