Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ls): use API Extractor for TypeScript rollup #4552

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions packages/apidom-ls/config/api-extractor/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"extends": "../../../../api-extractor.json"
}
11 changes: 0 additions & 11 deletions packages/apidom-ls/config/rollup/types.dist.js

This file was deleted.

6 changes: 3 additions & 3 deletions packages/apidom-ls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"main": "./src/index.cjs",
"exports": {
".": {
"types": "./types/dist.d.ts",
"types": "./types/apidom-ls.d.ts",
"import": "./src/index.mjs",
"require": "./src/index.cjs"
},
Expand Down Expand Up @@ -87,7 +87,7 @@
"clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' 'test/**/*.mjs' ./dist ./types",
"test": "npm run build:es && cross-env BABEL_ENV=es babel test --out-dir test --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward' && cross-env NODE_ENV=test mocha",
"typescript:check-types": "tsc --noEmit",
"typescript:declaration": "tsc -p tsconfig.declaration.json && rollup -c config/rollup/types.dist.js",
"typescript:declaration": "tsc -p tsconfig.declaration.json && api-extractor run -l -c ./config/api-extractor/api-extractor.json",
"prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
"postpack": "rimraf NOTICE LICENSES"
},
Expand Down Expand Up @@ -134,7 +134,7 @@
"src/**/*.mjs",
"src/**/*.cjs",
"dist/",
"types/dist.d.ts",
"types/apidom-ls.d.ts",
"LICENSES",
"NOTICE",
"README.md",
Expand Down
3 changes: 3 additions & 0 deletions packages/apidom-ls/src/apidom-language-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import { config } from './config/config.ts';
import { togglePerformanceLogs, toggleLogs, getSourceMap, debug } from './utils/utils.ts';
import { DefaultLinksService } from './services/links/links-service.ts';

/**
* @public
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function getLanguageService(context: LanguageServiceContext): LanguageService {
togglePerformanceLogs(!!context.performanceLogs);
Expand Down
Loading