@figma-export/output-components-as-svgr
Advanced tools
Comparing version 3.0.0-alpha.4 to 3.0.0-alpha.5
@@ -14,3 +14,3 @@ "use strict"; | ||
}; | ||
const output_components_utils_1 = require("@figma-export/output-components-utils"); | ||
const utils_1 = require("@figma-export/utils"); | ||
const core_1 = __importDefault(require("@svgr/core")); | ||
@@ -20,3 +20,3 @@ const fs = require("fs"); | ||
const makeDir = require("make-dir"); | ||
module.exports = ({ output, getDirname = (options) => `${options.pageName}${path.sep}${options.dirname}`, getComponentName = (options) => `${output_components_utils_1.pascalCase(options.basename)}`, getFileExtension = () => '.jsx', getSvgrConfig = () => ({}), }) => { | ||
module.exports = ({ output, getDirname = (options) => `${options.pageName}${path.sep}${options.dirname}`, getComponentName = (options) => `${utils_1.pascalCase(options.basename)}`, getFileExtension = () => '.jsx', getSvgrConfig = () => ({}), }) => { | ||
makeDir.sync(output); | ||
@@ -23,0 +23,0 @@ const indexJs = {}; |
{ | ||
"name": "@figma-export/output-components-as-svgr", | ||
"version": "3.0.0-alpha.4", | ||
"version": "3.0.0-alpha.5", | ||
"description": "Outputter for @figma-export that exports components as React components using svgr", | ||
@@ -18,4 +18,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@figma-export/output-components-utils": "^3.0.0-alpha.0", | ||
"@figma-export/types": "^3.0.0-alpha.4", | ||
"@figma-export/types": "^3.0.0-alpha.5", | ||
"@figma-export/utils": "^3.0.0-alpha.5", | ||
"@svgr/core": "~5.4.0", | ||
@@ -27,3 +27,3 @@ "make-dir": "~3.1.0" | ||
}, | ||
"gitHead": "d97bcf811aed178bcdddd7939570ca224117ae58" | ||
"gitHead": "92dd89c25f736a102f24cede1d8ceedfb8a02855" | ||
} |
@@ -64,3 +64,3 @@ # @figma-export/output-components-as-svgr | ||
const path = require('path'); | ||
const { pascalCase } = require('@figma-export/output-components-utils'); | ||
const { pascalCase } = require('@figma-export/utils'); | ||
@@ -67,0 +67,0 @@ ... |
Sorry, the diff of this file is not supported yet
15698
+ Added@figma-export/utils@3.3.0(transitive)
- Removed@figma-export/output-components-utils@^3.0.0-alpha.0
- Removed@figma-export/output-components-utils@3.0.0-alpha.0(transitive)