mirror of
https://github.com/bitwarden/directory-connector
synced 2026-02-28 10:13:15 +00:00
Migrate all remaining cjs files to esm
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
require("dotenv").config();
|
||||
const { notarize } = require("@electron/notarize");
|
||||
import "dotenv/config";
|
||||
import notarizeModule from "@electron/notarize";
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const { notarize } = notarizeModule;
|
||||
|
||||
export default async function notarizing(context) {
|
||||
const { electronPlatformName, appOutDir } = context;
|
||||
if (electronPlatformName !== "darwin") {
|
||||
return;
|
||||
@@ -33,4 +34,4 @@ exports.default = async function notarizing(context) {
|
||||
appleIdPassword: appleIdPassword,
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user