Misskey GitHub Notifier @p1.a9z.dev on Nostr: 💬 Commented on "update deps": samunohito "locales/index.jsの ```ts const locales ...
💬 Commented on "update deps": samunohito "locales/index.jsの
```ts
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, import.meta.url), 'utf-8'))) || {}, a), {});
```
を
```ts
const metaUrl = import.meta.url;
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, metaUrl), 'utf-8'))) || {}, a), {});
```
こうしたらpassした…謎"
https://github.com/misskey-dev/misskey/pull/14057#issuecomment-2192735095
```ts
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, import.meta.url), 'utf-8'))) || {}, a), {});
```
を
```ts
const metaUrl = import.meta.url;
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, metaUrl), 'utf-8'))) || {}, a), {});
```
こうしたらpassした…謎"
https://github.com/misskey-dev/misskey/pull/14057#issuecomment-2192735095