diff --git a/package.json b/package.json index 0e9e3f9a..c724fc6c 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,6 @@ }, "devDependencies": { "@types/csso": "^5.0.0", - "tsbb": "^4.0.3" + "tsbb": "^4.1.5" } } diff --git a/test/templates/index.js b/test/templates/index.js index 6c8ca1e4..04db1abd 100644 --- a/test/templates/index.js +++ b/test/templates/index.js @@ -3,8 +3,10 @@ const svgtofont = require("../../lib"); const pkg = require('../../package.json'); const rootPath = path.resolve(process.cwd(), "test", "templates"); - -svgtofont({ +/** + * @type {import('../../lib').SvgToFontOptions} + */ +const options = { src: path.resolve(rootPath, "svg"), // svg path dist: path.resolve(rootPath, "dist"), // output path // emptyDist: true, // Clear output directory contents @@ -18,6 +20,7 @@ svgtofont({ fontHeight: 1000, normalize: true }, + useCSSVars: true, // website = null, no demo html files website: { // Add a Github corner to your website @@ -61,12 +64,10 @@ svgtofont({ url: "index.html" } ], - options: { - useCSSVars: true, - }, footerInfo: `Licensed under MIT. (Yes it's free and open-sourced)` } -}) -.then(() => { +} + +svgtofont(options).then(() => { console.log("done!"); });