mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
committed by
Jessica Janiuk
parent
724e917f7a
commit
3f13db87e2
@@ -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.
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user