Skip to content

Commit

Permalink
refactor: removed commander implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Sep 27, 2023
1 parent 9381af4 commit ff2569c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@ const { StyleDictionary, colorTransform, createCustomCSSVariables } = require('.
const { createIndexCssFile } = require('../tokens/utils');

async function buildTokensCommand(commandArgs) {
const args = minimist(commandArgs, {
alias: {
s: 'source',
b: 'build',
t: 'themes',
},
});
const buildDir = args['build-dir'] || args.b || './build/';
const tokensSource = args.source || args.s;
const args = minimist(commandArgs);
const buildDir = args['build-dir'] || './build/';
const tokensSource = args.source;
const hasSourceTokensOnly = Boolean(args['source-tokens-only']);
const themes = args.themes || args.t || ['light'];
const themes = args.themes || ['light'];

const coreConfig = {
include: [path.resolve(__dirname, '../tokens/src/core/**/*.json')],
Expand Down

0 comments on commit ff2569c

Please sign in to comment.