seek-oss / capsize

Flipping how we define typography in CSS.
https://seek-oss.github.io/capsize/
MIT License
1.51k stars 37 forks source link

Latest version of `@capsizecss/metrics` doesn't generate font files #131

Closed gpahal closed 1 year ago

gpahal commented 1 year ago

I installed the latest version of @capsizecss/metrics@1.1.0 and tried to run the example code from the README:

import { createStyleObject } from '@capsizecss/core';
import arialMetrics from '@capsizecss/metrics/arial';

const capsizeStyles = createStyleObject({
  fontSize: 16,
  leading: 24,
  fontMetrics: arialMetrics,
});

I got an error saying that @capsizecss/metrics/arial module was not found. This works perfectly in v1.0.1

michaeltaranto commented 1 year ago

Thanks for reporting. Let me check it out and get back to you

michaeltaranto commented 1 year ago

Yes something has definitely broken. The latest version added new entrypoints for other functionality, but seems to have stopped publishing the built metric files.

I would recommend staying on v1.0.1 for now and we'll look to get a fix out.

michaeltaranto commented 1 year ago

Closed by https://github.com/seek-oss/capsize/pull/133

gpahal commented 1 year ago

Thanks for the quick fix and release!