Browse Source

chore: fix simplify spelling mistake

master
smallstonesk 4 years ago
parent
commit
2404aaf50a
  1. 4
      packages/cli/src/cmd/dev/simplifyDSL.js

4
packages/cli/src/cmd/dev/simplifyDSL.js

@ -7,7 +7,7 @@ const extractObj = (obj = {}, keys = []) => {
return ret; return ret;
}; };
const simpily = (dsl) => { const simplify = (dsl) => {
const {cells = []} = dsl; const {cells = []} = dsl;
return { return {
cells: cells.map(cell => { cells: cells.map(cell => {
@ -21,7 +21,7 @@ const simpily = (dsl) => {
}; };
const setup = async (dsl, logicBasePath) => { const setup = async (dsl, logicBasePath) => {
const simpilifiedDSL = simpily(dsl); const simpilifiedDSL = simplify(dsl);
const dslFilePath = path.join(logicBasePath, 'dsl.json'); const dslFilePath = path.join(logicBasePath, 'dsl.json');
await fs.writeFile(dslFilePath, JSON.stringify(simpilifiedDSL, null, 2)); await fs.writeFile(dslFilePath, JSON.stringify(simpilifiedDSL, null, 2));
}; };

Loading…
Cancel
Save