From dc559dbe1c22b7200bcb6e3cd84dc105a0381c19 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 12:19:58 +0100 Subject: [PATCH] Rename extension.ts -> main.ts --- editors/code/.vscodeignore | 2 +- editors/code/package.json | 2 +- editors/code/rollup.config.js | 4 ++-- editors/code/src/{extension.ts => main.ts} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename editors/code/src/{extension.ts => main.ts} (100%) diff --git a/editors/code/.vscodeignore b/editors/code/.vscodeignore index f2c4d33071..9bcd28e612 100644 --- a/editors/code/.vscodeignore +++ b/editors/code/.vscodeignore @@ -1,4 +1,4 @@ ** -!out/extension.js +!out/main.js !package.json !package-lock.json diff --git a/editors/code/package.json b/editors/code/package.json index 8c480cc3fc..d14a36f8c4 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -43,7 +43,7 @@ "onCommand:rust-analyzer.collectGarbage", "workspaceContains:**/Cargo.toml" ], - "main": "./out/extension", + "main": "./out/main", "contributes": { "taskDefinitions": [ { diff --git a/editors/code/rollup.config.js b/editors/code/rollup.config.js index e4b21afbd7..4c001f8993 100644 --- a/editors/code/rollup.config.js +++ b/editors/code/rollup.config.js @@ -4,7 +4,7 @@ import commonjs from '@rollup/plugin-commonjs'; import nodeBuiltins from 'builtin-modules'; export default { - input: 'src/extension.ts', + input: 'src/main.ts', plugins: [ typescript(), resolve({ @@ -19,7 +19,7 @@ export default { ], external: [...nodeBuiltins, 'vscode'], output: { - file: './out/extension.js', + file: './out/main.js', format: 'cjs' } }; diff --git a/editors/code/src/extension.ts b/editors/code/src/main.ts similarity index 100% rename from editors/code/src/extension.ts rename to editors/code/src/main.ts