summaryrefslogtreecommitdiff
path: root/dev/lib
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-08 03:11:35 +0900
committerDarius Jahandarie <djahandarie@gmail.com>2023-11-08 03:23:17 +0900
commit0f4d36938fd0d844f548aa5a7f7e7842df8dfb41 (patch)
tree5b6be3620a557d0b9177047003f6d742d9d2a32d /dev/lib
parentef79eab44bfd000792c610b968b5ceefd41e76a0 (diff)
Switch to vitest for ESM support; other fixes
Diffstat (limited to 'dev/lib')
-rw-r--r--dev/lib/ucs2length.js4
-rw-r--r--dev/lib/z-worker.js17
-rw-r--r--dev/lib/zip.js2
3 files changed, 21 insertions, 2 deletions
diff --git a/dev/lib/ucs2length.js b/dev/lib/ucs2length.js
index 2e4a01cd..3b370493 100644
--- a/dev/lib/ucs2length.js
+++ b/dev/lib/ucs2length.js
@@ -14,5 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-export {ucs2length} from 'ajv/dist/runtime/ucs2length';
+import ucs2length from 'ajv/dist/runtime/ucs2length.js';
+const ucs2length2 = ucs2length.default;
+export {ucs2length2 as ucs2length};
diff --git a/dev/lib/z-worker.js b/dev/lib/z-worker.js
new file mode 100644
index 00000000..f6a95ed3
--- /dev/null
+++ b/dev/lib/z-worker.js
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2023 Yomitan Authors
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+import '../../node_modules/@zip.js/zip.js/lib/z-worker.js';
diff --git a/dev/lib/zip.js b/dev/lib/zip.js
index 7560f5f8..b6e85451 100644
--- a/dev/lib/zip.js
+++ b/dev/lib/zip.js
@@ -14,4 +14,4 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-export * from '@zip.js/zip.js/lib/zip-full.js';
+export * from '@zip.js/zip.js/lib/zip.js';