Skip to content

Commit

Permalink
fix: Use absolute path for file URL
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Feb 12, 2024
1 parent 1f36e73 commit 3b5eb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/basemaps-mapsheet/create-mapsheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const basemapsCreateMapSheet = command({
const mem = ConfigProviderMemory.fromJson(configJson);

const rest = fgb.deserialize(buf) as FeatureCollection;
const featuresWritePromise = fsa.write(new URL('file://features.json'), JSON.stringify(rest));
const featuresWritePromise = fsa.write(new URL(`file://${process.cwd()}/features.json`), JSON.stringify(rest));

const aerial = await mem.TileSet.get('ts_aerial');
if (aerial == null) throw new Error('Invalid config file.');
Expand Down

0 comments on commit 3b5eb17

Please sign in to comment.