From 71e07970c04035de13363e28ad3c9c431a8005e3 Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Thu, 9 May 2024 21:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=8Bpackages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/md5/.gitignore | 5 ++++- ica-rs/plugins/md5/{runs.ts => runs.tsm} | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) rename ica-rs/plugins/md5/{runs.ts => runs.tsm} (55%) diff --git a/ica-rs/plugins/md5/.gitignore b/ica-rs/plugins/md5/.gitignore index ae40cea..7d191a4 100644 --- a/ica-rs/plugins/md5/.gitignore +++ b/ica-rs/plugins/md5/.gitignore @@ -1 +1,4 @@ -input.txt \ No newline at end of file +input.txt +node_modules +package-lock.json +package.json \ No newline at end of file diff --git a/ica-rs/plugins/md5/runs.ts b/ica-rs/plugins/md5/runs.tsm similarity index 55% rename from ica-rs/plugins/md5/runs.ts rename to ica-rs/plugins/md5/runs.tsm index e704cb2..71cb695 100644 --- a/ica-rs/plugins/md5/runs.ts +++ b/ica-rs/plugins/md5/runs.tsm @@ -1,6 +1,9 @@ -const fs = require('fs'); -const path = require('path'); -const fight = require('./md5-api.ts').fight; +// const fs = require('fs'); +// const path = require('path'); +import fs from 'fs'; +import path from 'path'; +// const fight = require('./md5-api.ts').fight; +import { fight } from './md5-api.ts'; // 从文件的 ./input.txt 中读取输入 // 然后丢给 md5.js