mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: lint / linux build failed
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
1ec6db9901
commit
a58b64124e
@ -7,6 +7,8 @@ import json from '@rollup/plugin-json';
|
|||||||
import dts from "rollup-plugin-dts";
|
import dts from "rollup-plugin-dts";
|
||||||
import ignoreImport from 'rollup-plugin-ignore-import'
|
import ignoreImport from 'rollup-plugin-ignore-import'
|
||||||
|
|
||||||
|
// todo: generate extension-api.js bundle also with Rollup (?)
|
||||||
|
|
||||||
const config: RollupOptions = {
|
const config: RollupOptions = {
|
||||||
input: "src/extensions/extension-api.ts",
|
input: "src/extensions/extension-api.ts",
|
||||||
output: [
|
output: [
|
||||||
@ -27,10 +29,10 @@ function dtsModuleWrap({ name }: { name: string }): Plugin {
|
|||||||
const apiTypes = Object.values(bundle)[0] as OutputChunk; // extension-api.d.ts
|
const apiTypes = Object.values(bundle)[0] as OutputChunk; // extension-api.d.ts
|
||||||
const typeRefs: string[] = []
|
const typeRefs: string[] = []
|
||||||
const declarations: string[] = []
|
const declarations: string[] = []
|
||||||
let bundleLines = apiTypes.code.split("\n")
|
const apiLines = apiTypes.code.split("\n")
|
||||||
let outputCode = ""
|
let outputCode = ""
|
||||||
|
|
||||||
bundleLines.forEach(line => {
|
apiLines.forEach(line => {
|
||||||
if (line.startsWith("///")) {
|
if (line.startsWith("///")) {
|
||||||
typeRefs.push(line)
|
typeRefs.push(line)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user