mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 17:08:57 +01:00
Suffix lint rule and fixes
This commit is contained in:
+34
-14
@@ -94,7 +94,7 @@ const bundleDefaults = {
|
||||
'mocha',
|
||||
|
||||
// Uses fast-glob and dynamic requires
|
||||
'./preload_test.js',
|
||||
'./preload_test.preload.js',
|
||||
],
|
||||
};
|
||||
|
||||
@@ -162,7 +162,9 @@ async function main() {
|
||||
preloadConfig: {
|
||||
...bundleDefaults,
|
||||
mainFields: ['browser', 'main'],
|
||||
entryPoints: [path.join(ROOT_DIR, 'ts', 'windows', 'main', 'preload.ts')],
|
||||
entryPoints: [
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'main', 'preload.preload.ts'),
|
||||
],
|
||||
outfile: path.join(ROOT_DIR, 'preload.bundle.js'),
|
||||
},
|
||||
});
|
||||
@@ -174,17 +176,17 @@ async function sandboxedEnv() {
|
||||
...sandboxedBrowserDefaults,
|
||||
mainFields: ['browser', 'main'],
|
||||
entryPoints: [
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'about', 'app.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'app.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'start.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'permissions', 'app.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'screenShare', 'app.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'about', 'app.dom.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'app.dom.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'start.dom.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'permissions', 'app.dom.tsx'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'screenShare', 'app.dom.tsx'),
|
||||
path.join(
|
||||
ROOT_DIR,
|
||||
'ts',
|
||||
'windows',
|
||||
'calling-tools',
|
||||
'webrtc_internals.ts'
|
||||
'webrtc_internals.dom.ts'
|
||||
),
|
||||
],
|
||||
},
|
||||
@@ -192,12 +194,30 @@ async function sandboxedEnv() {
|
||||
...sandboxedPreloadDefaults,
|
||||
mainFields: ['browser', 'main'],
|
||||
entryPoints: [
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'about', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'permissions', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'calling-tools', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'screenShare', 'preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'about', 'preload.preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'preload.preload.ts'),
|
||||
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'preload.preload.ts'),
|
||||
path.join(
|
||||
ROOT_DIR,
|
||||
'ts',
|
||||
'windows',
|
||||
'permissions',
|
||||
'preload.preload.ts'
|
||||
),
|
||||
path.join(
|
||||
ROOT_DIR,
|
||||
'ts',
|
||||
'windows',
|
||||
'calling-tools',
|
||||
'preload.preload.ts'
|
||||
),
|
||||
path.join(
|
||||
ROOT_DIR,
|
||||
'ts',
|
||||
'windows',
|
||||
'screenShare',
|
||||
'preload.preload.ts'
|
||||
),
|
||||
],
|
||||
format: 'cjs',
|
||||
outdir: 'bundles',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const fs = require('node:fs');
|
||||
const _ = require('lodash');
|
||||
const { execSync } = require('node:child_process');
|
||||
const { isAdhoc } = require('../ts/util/version.js');
|
||||
const { isAdhoc } = require('../ts/util/version.std.js');
|
||||
const { default: packageJson, version } = require('./packageJson.js');
|
||||
|
||||
// You might be wondering why this file is necessary. It comes down to our desire to allow
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const fs = require('node:fs');
|
||||
const _ = require('lodash');
|
||||
|
||||
const { isAlpha } = require('../ts/util/version.js');
|
||||
const { isAlpha } = require('../ts/util/version.std.js');
|
||||
const { default: packageJson, version } = require('./packageJson.js');
|
||||
|
||||
// You might be wondering why this file is necessary. It comes down to our desire to allow
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const fs = require('node:fs');
|
||||
const _ = require('lodash');
|
||||
|
||||
const { isAxolotl } = require('../ts/util/version.js');
|
||||
const { isAxolotl } = require('../ts/util/version.std.js');
|
||||
const { default: packageJson, version } = require('./packageJson.js');
|
||||
|
||||
// You might be wondering why this file is necessary. It comes down to our desire to allow
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const fs = require('node:fs');
|
||||
const _ = require('lodash');
|
||||
|
||||
const { isBeta } = require('../ts/util/version.js');
|
||||
const { isBeta } = require('../ts/util/version.std.js');
|
||||
const { default: packageJson, version } = require('./packageJson.js');
|
||||
|
||||
// You might be wondering why this file is necessary. It comes down to our desire to allow
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const fs = require('node:fs');
|
||||
const _ = require('lodash');
|
||||
|
||||
const { isAlpha } = require('../ts/util/version.js');
|
||||
const { isAlpha } = require('../ts/util/version.std.js');
|
||||
const { default: packageJson, version } = require('./packageJson.js');
|
||||
|
||||
// You might be wondering why this file is necessary. It comes down to our desire to allow
|
||||
|
||||
@@ -16,7 +16,7 @@ if (release !== 'alpha' && release !== 'axolotl' && release !== 'adhoc') {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const { generateTaggedVersion } = require('../ts/util/version.js');
|
||||
const { generateTaggedVersion } = require('../ts/util/version.std.js');
|
||||
|
||||
const shortSha = execSync('git rev-parse --short=9 HEAD')
|
||||
.toString('utf8')
|
||||
|
||||
Reference in New Issue
Block a user