Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xo): linting problems #183

Merged
merged 3 commits into from
Dec 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
);