清理冗余代码:删除未使用变量、types.ts 改为 .d.ts、测试路径改引 dist/

- 删除未使用的 getActiveEnv 解构、sender 参数改为 _sender
- types.ts 重命名为 types.d.ts,消除无用的 dist/types.js 产物
- 测试文件引用路径从根目录改为 dist/
This commit is contained in:
陈银军
2026-09-17 01:44:53 +08:00
committed by chenxuan
parent 9725520018
commit 9ccc9253d3
12 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ function createMemoryStorage() {
function loadCryptoStore(storage) {
global.chrome = { storage };
delete require.cache[require.resolve("../crypto-store.js")];
return require("../crypto-store.js");
delete require.cache[require.resolve("../dist/crypto-store.js")];
return require("../dist/crypto-store.js");
}
describe("crypto-store - 基础加解密", () => {