[wanbli@arch vscode-tads3tools-feature-bugfixes]$ vsce package INFO Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line). Executing prepublish script 'yarn run vscode:prepublish'... yarn run v1.22.17 warning vscode-tads3tools@0.2.0: The engine "vscode" appears to be invalid. $ npm run compile > vscode-tads3tools@0.2.0 compile > tsc -b client/src/modules/visual-editor.ts:2:48 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 2 import { ExtensionContext, Uri, Webview } from 'vscode'; ~~~~~~~~ client/src/modules/visual-editor.ts:40:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 40 console.log('did show all: '); ~~~~~~~ client/src/modules/visual-editor.ts:41:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 41 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:51:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 51 console.log('did update position: '); ~~~~~~~ client/src/modules/visual-editor.ts:68:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 68 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:72:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 72 console.log('did change: '); ~~~~~~~ client/src/modules/visual-editor.ts:73:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 73 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:92:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 92 console.log('did change start room: '); ~~~~~~~ client/src/modules/visual-editor.ts:93:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 93 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:100:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 100 console.log(`${payload}`); ~~~~~~~ client/src/modules/visual-editor.ts:107:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 107 console.log('did Log: '); ~~~~~~~ client/src/modules/visual-editor.ts:108:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 108 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:112:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 112 console.log('did select editor: '); ~~~~~~~ client/src/modules/visual-editor.ts:113:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 113 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:134:3 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 134 console.log('did change port: '); ~~~~~~~ client/src/modules/visual-editor.ts:135:3 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 135 console.log(payload); ~~~~~~~ client/src/modules/visual-editor.ts:205:6 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 205 console.error(`Successfully saved with new content`); ~~~~~~~ client/src/modules/tads3-error-parser.ts:1:79 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 1 import { TextDocument, Diagnostic, DiagnosticSeverity, Position, Range } from 'vscode'; ~~~~~~~~ client/src/modules/local-storage-service.ts:2:25 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 2 import { Memento } from "vscode"; ~~~~~~~~ client/src/modules/validations.ts:1:35 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 1 import { window, workspace } from 'vscode'; ~~~~~~~~ client/src/modules/state.ts:1:67 - error TS2307: Cannot find module 'mobx' or its corresponding type declarations. 1 import { autorun, makeAutoObservable, observable, reaction } from "mobx"; ~~~~~~ client/src/modules/state.ts:21:4 - error TS2304: Cannot find name 'setTimeout'. 21 setTimeout(()=>reportState(text.length > 0 ? text.join(', ') : 'Done')); ~~~~~~~~~~ client/src/modules/validate-makefile.ts:1:26 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 1 import { basename } from 'path'; ~~~~~~ client/src/modules/validate-makefile.ts:2:59 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 2 import { CancellationError, Uri, window, workspace } from 'vscode'; ~~~~~~~~ client/src/modules/extractAllQuotes.ts:1:42 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 1 import { ExtensionContext, window } from 'vscode'; ~~~~~~~~ client/src/modules/createTemplateProject.ts:1:42 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 1 import { existsSync, readFileSync } from 'fs'; ~~~~ client/src/modules/createTemplateProject.ts:2:83 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 2 import { workspace, ExtensionContext, window, Uri, Position, SnippetString } from 'vscode'; ~~~~~~~~ client/src/modules/createTemplateProject.ts:3:31 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 3 import { writeFileSync } from 'fs'; ~~~~ client/src/modules/createTemplateProject.ts:4:31 - error TS2307: Cannot find module 'fs-extra' or its corresponding type declarations. 4 import { ensureDirSync } from 'fs-extra'; ~~~~~~~~~~ client/src/modules/installTracker.ts:1:42 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 1 import { existsSync, readFileSync } from 'fs'; ~~~~ client/src/modules/installTracker.ts:2:23 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 2 import * as path from 'path'; ~~~~~~ client/src/modules/installTracker.ts:3:25 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 3 import { dirname } from 'path'; ~~~~~~ client/src/modules/installTracker.ts:4:77 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 4 import { workspace, ExtensionContext, window, Uri, Range, ViewColumn } from 'vscode'; ~~~~~~~~ client/src/modules/installTracker.ts:5:31 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 5 import { writeFileSync } from 'fs'; ~~~~ client/src/extension.ts:7:22 - error TS2307: Cannot find module 'child_process' or its corresponding type declarations. 7 import { exec } from 'child_process'; ~~~~~~~~~~~~~~~ client/src/extension.ts:8:99 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 8 import { copyFileSync, createReadStream, createWriteStream, exists, existsSync, unlinkSync } from 'fs'; ~~~~ client/src/extension.ts:9:23 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 9 import * as path from 'path'; ~~~~~~ client/src/extension.ts:10:35 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 10 import { basename, dirname } from 'path'; ~~~~~~ client/src/extension.ts:11:328 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 11 import { workspace, ExtensionContext, commands, ProgressLocation, window, CancellationTokenSource, Uri, TextDocument, languages, Range, ViewColumn, WebviewOptions, WebviewPanel, DocumentSymbol, TextEditor, FileSystemWatcher, RelativePattern, MessageItem, Position, SnippetString, TextEditorRevealType, CancellationError } from 'vscode'; ~~~~~~~~ client/src/extension.ts:17:8 - error TS2307: Cannot find module 'vscode-languageclient/node' or its corresponding type declarations. 17 } from 'vscode-languageclient/node'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client/src/extension.ts:20:39 - error TS2307: Cannot find module 'rxjs' or its corresponding type declarations. 20 import { Subject, debounceTime } from 'rxjs'; ~~~~~~ client/src/extension.ts:22:31 - error TS2307: Cannot find module 'fs-extra' or its corresponding type declarations. 22 import { ensureDirSync } from 'fs-extra'; ~~~~~~~~~~ client/src/extension.ts:23:19 - error TS2307: Cannot find module 'axios' or its corresponding type declarations. 23 import axios from 'axios'; ~~~~~~~ client/src/extension.ts:24:25 - error TS2307: Cannot find module 'unzipper' or its corresponding type declarations. 24 import { Extract } from 'unzipper'; ~~~~~~~~~~ client/src/extension.ts:25:27 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 25 import { rmdirSync } from 'fs'; ~~~~ client/src/extension.ts:219:25 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 219 .then(saveResult => console.log(`${saveResult} saved `)); ~~~~~~~ client/src/extension.ts:224:26 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 224 .then(saveResult => console.log(`${saveResult} saved `)); ~~~~~~~ client/src/extension.ts:269:6 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 269 console.error(err); ~~~~~~~ client/src/extension.ts:363:5 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 363 console.error(`No makefile could be found for ${dirname(currentTextDocument.uri.fsPath)}`); ~~~~~~~ client/src/extension.ts:376:31 - error TS2304: Cannot find name 'Thenable'. 376 export function deactivate(): Thenable | undefined { ~~~~~~~~ client/src/extension.ts:408:3 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 408 console.error(`No Makefile.t3m found, source code could not be processed.`); ~~~~~~~ client/src/extension.ts:543:3 - error TS2304: Cannot find name 'setTimeout'. 543 setTimeout(() => window.showTextDocument(documentWorkingOn), 500); ~~~~~~~~~~ client/src/extension.ts:561:44 - error TS2304: Cannot find name '__dirname'. 561 const pathToStoreExtension = path.resolve(__dirname, folder, fileName); ~~~~~~~~~ client/src/extension.ts:625:2 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 625 console.log(action); ~~~~~~~ client/src/extension.ts:883:4 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 883 console.error(`No handler installed for: ${event.command}`); ~~~~~~~ client/src/extension.ts:899:4 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 899 console.log(`${node.name} has persisted position: ${persistedPosition[0]}/${persistedPosition[1]}`); ~~~~~~~ client/src/extension.ts:926:4 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 926 console.error(`No tads3 makefile could be found`); ~~~~~~~ client/src/test/helper.ts:6:25 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 6 import * as vscode from 'vscode'; ~~~~~~~~ client/src/test/helper.ts:7:23 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 7 import * as path from 'path'; ~~~~~~ client/src/test/helper.ts:25:3 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 25 console.error(e); ~~~~~~~ client/src/test/helper.ts:30:32 - error TS2304: Cannot find name 'setTimeout'. 30 return new Promise(resolve => setTimeout(resolve, ms)); ~~~~~~~~~~ client/src/test/helper.ts:34:22 - error TS2304: Cannot find name '__dirname'. 34 return path.resolve(__dirname, '../../testFixture', p); ~~~~~~~~~ client/src/test/completion.test.ts:6:25 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 6 import * as vscode from 'vscode'; ~~~~~~~~ client/src/test/completion.test.ts:7:25 - error TS2307: Cannot find module 'assert' or its corresponding type declarations. 7 import * as assert from 'assert'; ~~~~~~~~ client/src/test/completion.test.ts:10:1 - error TS2582: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. 10 suite.skip('Should do completion', () => { ~~~~~ client/src/test/completion.test.ts:13:2 - error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. 13 test('Completes JS/TS in txt file', async () => { ~~~~ client/src/test/diagnostics.test.ts:6:25 - error TS2307: Cannot find module 'vscode' or its corresponding type declarations. 6 import * as vscode from 'vscode'; ~~~~~~~~ client/src/test/diagnostics.test.ts:7:25 - error TS2307: Cannot find module 'assert' or its corresponding type declarations. 7 import * as assert from 'assert'; ~~~~~~~~ client/src/test/diagnostics.test.ts:10:1 - error TS2582: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. 10 suite('Should get diagnostics', () => { ~~~~~ client/src/test/diagnostics.test.ts:12:2 - error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. 12 test('Makefile missing essential configuration', async () => { ~~~~ client/src/test/index.ts:5:23 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 5 import * as path from 'path'; ~~~~~~ client/src/test/index.ts:6:24 - error TS2307: Cannot find module 'mocha' or its corresponding type declarations. 6 import * as Mocha from 'mocha'; ~~~~~~~ client/src/test/index.ts:7:23 - error TS2307: Cannot find module 'glob' or its corresponding type declarations. 7 import * as glob from 'glob'; ~~~~~~ client/src/test/index.ts:17:20 - error TS2304: Cannot find name '__dirname'. 17 const testsRoot = __dirname; ~~~~~~~~~ client/src/test/index.ts:38:5 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 38 console.error(err); ~~~~~~~ client/src/test/runTest.ts:5:23 - error TS2307: Cannot find module 'path' or its corresponding type declarations. 5 import * as path from 'path'; ~~~~~~ client/src/test/runTest.ts:7:26 - error TS2307: Cannot find module '@vscode/test-electron' or its corresponding type declarations. 7 import { runTests } from '@vscode/test-electron'; ~~~~~~~~~~~~~~~~~~~~~~~ client/src/test/runTest.ts:13:49 - error TS2304: Cannot find name '__dirname'. 13 const extensionDevelopmentPath = path.resolve(__dirname, '../../../'); ~~~~~~~~~ client/src/test/runTest.ts:17:43 - error TS2304: Cannot find name '__dirname'. 17 const extensionTestsPath = path.resolve(__dirname, './index'); ~~~~~~~~~ client/src/test/runTest.ts:21:3 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 21 console.error('Failed to run tests'); ~~~~~~~ client/src/test/runTest.ts:22:3 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. 22 process.exit(1); ~~~~~~~ error TS2688: Cannot find type definition file for 'jest'. The file is in the program because: Entry point of type library 'jest' specified in compilerOptions server/tsconfig.json:11:21 11 "types": ["node", "jest"] ~~~~~~ File is entry point of type library specified here. error TS2688: Cannot find type definition file for 'node'. The file is in the program because: Entry point of type library 'node' specified in compilerOptions server/tsconfig.json:11:13 11 "types": ["node", "jest"] ~~~~~~ File is entry point of type library specified here. Found 83 errors. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ERROR yarn failed with exit code 1 [wanbli@arch vscode-tads3tools-feature-bugfixes]$