From 5737fda154aebbc686078cef63258105ed318d8e Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 9 Jul 2020 20:32:37 -0700 Subject: [PATCH] build: tsify worker/init (#24497) --- filenames.auto.gni | 2 +- lib/worker/{init.js => init.ts} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename lib/worker/{init.js => init.ts} (97%) diff --git a/filenames.auto.gni b/filenames.auto.gni index b40f23e11ad7..8eb36da3ce62 100644 --- a/filenames.auto.gni +++ b/filenames.auto.gni @@ -327,7 +327,7 @@ auto_filenames = { "lib/renderer/ipc-renderer-internal.ts", "lib/renderer/remote/callbacks-registry.ts", "lib/renderer/webpack-provider.ts", - "lib/worker/init.js", + "lib/worker/init.ts", "package.json", "tsconfig.electron.json", "tsconfig.json", diff --git a/lib/worker/init.js b/lib/worker/init.ts similarity index 97% rename from lib/worker/init.js rename to lib/worker/init.ts index 05a644369380..adda86471145 100644 --- a/lib/worker/init.js +++ b/lib/worker/init.ts @@ -1,6 +1,5 @@ -'use strict'; +import * as path from 'path'; -const path = require('path'); const Module = require('module'); // We modified the original process.argv to let node.js load the