@symbo.ls/init
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "@symbo.ls/init", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa", |
@@ -11,5 +11,9 @@ 'use strict' | ||
import { deepMerge, isObject } from '@domql/utils' | ||
import CONFIG_DEFAULT from '@symbo.ls/config-default' | ||
import SYMBOLSRC_FILE from '../.symbolsrc.json' | ||
import DYNAMIC_JSON from './dynamic.json' | ||
import createEmotion from '@emotion/css/create-instance' | ||
@@ -22,6 +26,9 @@ import { setClassname } from 'css-in-props' | ||
export const init = (config) => { | ||
export const init = (config, rcfile) => { | ||
const defaultConfig = config || CONFIG_DEFAULT || SYMBOLSRC_FILE | ||
const conf = set({ verbose: false, ...defaultConfig }) | ||
const RC_FILE = isObject(rcfile) ? rcfile : DYNAMIC_JSON | ||
const resultConfig = deepMerge(RC_FILE, defaultConfig) | ||
const conf = set({ verbose: false, ...resultConfig }) | ||
const FontFace = getFontFaceString(FONT) | ||
@@ -28,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4121
4
30