From b7c37cd0c09a6b8c52f5522c6dd7fd3508298c89 Mon Sep 17 00:00:00 2001 From: guokairui Date: Fri, 15 Dec 2023 10:22:56 +0800 Subject: [PATCH] feat: update sync script use es module --- scripts/sync.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/sync.js b/scripts/sync.js index 31c445220..ae48b19d0 100644 --- a/scripts/sync.js +++ b/scripts/sync.js @@ -1,7 +1,8 @@ -const { Command } = require('commander'); -const SimpleGit = require('simple-git'); +import { Command } from 'commander'; +import SimpleGit from 'simple-git'; +import open from 'open'; + const program = new Command(); -const open = require('open'); async function getLatestSyncHash () { const git = SimpleGit();