vite-plugin-capsize-radix 0.0.3 → 0.0.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/dist/index.cjs CHANGED
@@ -30,7 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
- radixCapsizePlugin: () => radixCapsizePlugin
33
+ capsizeRadixPlugin: () => capsizeRadixPlugin
34
34
  });
35
35
  module.exports = __toCommonJS(src_exports);
36
36
  var import_fs = __toESM(require("fs"), 1);
@@ -205,7 +205,7 @@ async function generate(options) {
205
205
  })
206
206
  );
207
207
  }
208
- function radixCapsizePlugin({
208
+ function capsizeRadixPlugin({
209
209
  outputPath,
210
210
  fontSizes = [9, 11, 12, 14, 18, 24, 36, 48, 64],
211
211
  lineHeights = [21, 24, 26, 27, 29, 36, 44, 52, 64],
@@ -227,5 +227,5 @@ function radixCapsizePlugin({
227
227
  }
228
228
  // Annotate the CommonJS export names for ESM import in node:
229
229
  0 && (module.exports = {
230
- radixCapsizePlugin
230
+ capsizeRadixPlugin
231
231
  });
package/dist/index.d.cts CHANGED
@@ -8,6 +8,6 @@ interface Options {
8
8
  defaultFontStack?: FontMetrics[];
9
9
  headingFontStack?: FontMetrics[];
10
10
  }
11
- declare function radixCapsizePlugin({ outputPath, fontSizes, lineHeights, defaultFontStack, headingFontStack, }: Options): Plugin;
11
+ declare function capsizeRadixPlugin({ outputPath, fontSizes, lineHeights, defaultFontStack, headingFontStack, }: Options): Plugin;
12
12
 
13
- export { radixCapsizePlugin };
13
+ export { capsizeRadixPlugin };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ interface Options {
8
8
  defaultFontStack?: FontMetrics[];
9
9
  headingFontStack?: FontMetrics[];
10
10
  }
11
- declare function radixCapsizePlugin({ outputPath, fontSizes, lineHeights, defaultFontStack, headingFontStack, }: Options): Plugin;
11
+ declare function capsizeRadixPlugin({ outputPath, fontSizes, lineHeights, defaultFontStack, headingFontStack, }: Options): Plugin;
12
12
 
13
- export { radixCapsizePlugin };
13
+ export { capsizeRadixPlugin };
package/dist/index.js CHANGED
@@ -175,7 +175,7 @@ async function generate(options) {
175
175
  })
176
176
  );
177
177
  }
178
- function radixCapsizePlugin({
178
+ function capsizeRadixPlugin({
179
179
  outputPath,
180
180
  fontSizes = [9, 11, 12, 14, 18, 24, 36, 48, 64],
181
181
  lineHeights = [21, 24, 26, 27, 29, 36, 44, 52, 64],
@@ -196,5 +196,5 @@ function radixCapsizePlugin({
196
196
  };
197
197
  }
198
198
  export {
199
- radixCapsizePlugin
199
+ capsizeRadixPlugin
200
200
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-capsize-radix",
3
3
  "description": "Great Typography with Radix & Capsize",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
6
6
  "dependencies": {
7
7
  "@capsizecss/core": "^4.1.0",
@@ -57,6 +57,7 @@
57
57
  "build": "npm run clean && tsup --external @capsizecss/core --external mustache --external @capsizecss/metrics",
58
58
  "check": "tsc",
59
59
  "clean": "shx rm -rf dist *.d.ts",
60
+ "prepublishOnly": "npm run build",
60
61
  "test": "echo \"Error: no test specified\" && exit 1"
61
62
  },
62
63
  "tsup": {