Skip to content

Commit

Permalink
fix(xo): linting problems (#183)
Browse files Browse the repository at this point in the history
* refactor: added further necessary declarations

* fix(xo): linting problems

* Restore .editorconfig
  • Loading branch information
mfranzke authored Dec 6, 2022
1 parent 0f7ce79 commit 1c17bae
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions scripts/tailwind-config-generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
import * as process from 'node:process';
import * as fs from 'node:fs';

const run = async () => {
const defaultConfig = process.argv[2];
const defaultConfig = process.argv[2];

const internal = process.argv[3];
const internal = process.argv[3];

let configFile = `
let configFile = `
const tokens = require('${
internal ? './' : '@db-ui/base/build/tailwind/'
}tailwind-tokens.json')
Expand All @@ -35,14 +34,11 @@ const run = async () => {
};
`;

if (defaultConfig === 'default') {
configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`;
}
if (defaultConfig === 'default') {
configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`;
}

fs.writeFileSync(
`${internal ? './build/tailwind' : '.'}/tailwind.config.js`,
configFile
);
};

run();
await fs.writeFileSync(
`${internal ? './build/tailwind' : '.'}/tailwind.config.js`,
configFile
);

0 comments on commit 1c17bae

Please sign in to comment.