create-pixi-vn 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-react-vite-muijoy-ink/src/utils/ink-utility.ts +3 -4
- package/template-react-vite-muijoy-ink-tauri/src/utils/ink-utility.ts +3 -4
- package/template-story-react-vite-muijoy-ink/package.json +1 -1
- package/template-story-react-vite-muijoy-ink/src/utils/ink-utility.ts +3 -4
- package/template-story-react-vite-muijoy-ink-tauri/package.json +1 -1
- package/template-story-react-vite-muijoy-ink-tauri/src/utils/ink-utility.ts +3 -4
package/package.json
CHANGED
|
@@ -2,11 +2,10 @@ import { RegisteredCharacters } from "@drincs/pixi-vn";
|
|
|
2
2
|
import { importInkText, onInkHashtagScript, onReplaceTextBeforeTranslation } from "@drincs/pixi-vn-ink";
|
|
3
3
|
|
|
4
4
|
export async function importAllInkLabels() {
|
|
5
|
-
const files = import.meta.glob<
|
|
5
|
+
const files = import.meta.glob<string>("../ink/*.{ink,txt}", { as: "raw" });
|
|
6
6
|
const fileEntries = await Promise.all(
|
|
7
|
-
Object.
|
|
8
|
-
|
|
9
|
-
return fileModule.default;
|
|
7
|
+
Object.values(files).map(async (importFile) => {
|
|
8
|
+
return await importFile();
|
|
10
9
|
})
|
|
11
10
|
);
|
|
12
11
|
await importInkText(fileEntries);
|
|
@@ -2,11 +2,10 @@ import { RegisteredCharacters } from "@drincs/pixi-vn";
|
|
|
2
2
|
import { importInkText, onInkHashtagScript, onReplaceTextBeforeTranslation } from "@drincs/pixi-vn-ink";
|
|
3
3
|
|
|
4
4
|
export async function importAllInkLabels() {
|
|
5
|
-
const files = import.meta.glob<
|
|
5
|
+
const files = import.meta.glob<string>("../ink/*.{ink,txt}", { as: "raw" });
|
|
6
6
|
const fileEntries = await Promise.all(
|
|
7
|
-
Object.
|
|
8
|
-
|
|
9
|
-
return fileModule.default;
|
|
7
|
+
Object.values(files).map(async (importFile) => {
|
|
8
|
+
return await importFile();
|
|
10
9
|
})
|
|
11
10
|
);
|
|
12
11
|
await importInkText(fileEntries);
|
|
@@ -2,11 +2,10 @@ import { RegisteredCharacters } from "@drincs/pixi-vn";
|
|
|
2
2
|
import { importInkText, onInkHashtagScript, onReplaceTextBeforeTranslation } from "@drincs/pixi-vn-ink";
|
|
3
3
|
|
|
4
4
|
export async function importAllInkLabels() {
|
|
5
|
-
const files = import.meta.glob<
|
|
5
|
+
const files = import.meta.glob<string>("../ink/*.{ink,txt}", { as: "raw" });
|
|
6
6
|
const fileEntries = await Promise.all(
|
|
7
|
-
Object.
|
|
8
|
-
|
|
9
|
-
return fileModule.default;
|
|
7
|
+
Object.values(files).map(async (importFile) => {
|
|
8
|
+
return await importFile();
|
|
10
9
|
})
|
|
11
10
|
);
|
|
12
11
|
await importInkText(fileEntries);
|
|
@@ -2,11 +2,10 @@ import { RegisteredCharacters } from "@drincs/pixi-vn";
|
|
|
2
2
|
import { importInkText, onInkHashtagScript, onReplaceTextBeforeTranslation } from "@drincs/pixi-vn-ink";
|
|
3
3
|
|
|
4
4
|
export async function importAllInkLabels() {
|
|
5
|
-
const files = import.meta.glob<
|
|
5
|
+
const files = import.meta.glob<string>("../ink/*.{ink,txt}", { as: "raw" });
|
|
6
6
|
const fileEntries = await Promise.all(
|
|
7
|
-
Object.
|
|
8
|
-
|
|
9
|
-
return fileModule.default;
|
|
7
|
+
Object.values(files).map(async (importFile) => {
|
|
8
|
+
return await importFile();
|
|
10
9
|
})
|
|
11
10
|
);
|
|
12
11
|
await importInkText(fileEntries);
|