@tileflow/dev 0.1.0-alpha.19 → 0.1.0-alpha.20

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.
@@ -15,8 +15,7 @@ import {
15
15
  compareCodeUnits,
16
16
  getTileflowStyleFontFaces,
17
17
  hashTileflowFontBundleManifest,
18
- parseTileflowMap,
19
- resolveMap,
18
+ parseResolvedTileflowMap,
20
19
  tileflowMapIdSchema,
21
20
  tileflowStyleFontFaceLimits,
22
21
  tileflowStyleFontFacesMetadataKey,
@@ -139,9 +138,9 @@ async function getTileflowFontWatchPaths(project, cwd, baseDirectory = cwd) {
139
138
  const watchPaths = /* @__PURE__ */ new Set();
140
139
  const issues = [];
141
140
  for (const mapName of Object.keys(project.maps).sort(compareCodeUnits)) {
142
- const authoredMap = project.maps[mapName];
143
- if (!authoredMap) continue;
144
- const fonts = resolveMap(authoredMap).fonts;
141
+ const resolvedMap = project.maps[mapName];
142
+ if (!resolvedMap) continue;
143
+ const fonts = parseResolvedTileflowMap(resolvedMap).fonts;
145
144
  if (fonts === void 0) continue;
146
145
  try {
147
146
  const directories = await resolveTileflowAssetDirectories(fonts, {
@@ -207,7 +206,9 @@ async function prepareTileflowStyleFonts(project, inputStyles, options) {
207
206
  }
208
207
  if (issues.length > 0) throw new TileflowFontCompilationError(issues);
209
208
  const parsedMaps = new Map(
210
- projectMapNames.map((mapName) => [mapName, parseTileflowMap(project.maps[mapName])])
209
+ projectMapNames.map(
210
+ (mapName) => [mapName, parseResolvedTileflowMap(project.maps[mapName])]
211
+ )
211
212
  );
212
213
  if (projectMapNames.length !== styleMapNames.length || projectMapNames.some((mapName, index) => mapName !== styleMapNames[index])) {
213
214
  throw new TileflowFontCompilationError([