Skip to content

Commit

Permalink
add vite to transpile to es,cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ezequiel Fabbroni Assum committed Dec 20, 2024
1 parent 03c12e5 commit 5f1d7fe
Show file tree
Hide file tree
Showing 45 changed files with 391 additions and 2,326 deletions.
17 changes: 11 additions & 6 deletions configs/es6/base.js → configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ import style from './style.js';
import { isPackageAvailable } from './utils.js';
import variables from './variables.js';

const isTSAvailable = await isPackageAvailable('typescript');
let isTSAvailable = false;
let isJestAvailable = false;
let tsConfigs = [];
if (isTSAvailable) {
const { tsLintConfig } = await import('./ts.js');
tsConfigs = tsLintConfig;
}
const isJestAvailable = await isPackageAvailable('jest');

(async () => {
isTSAvailable = await isPackageAvailable('typescript');
isJestAvailable = await isPackageAvailable('jest');
if (isTSAvailable) {
const { tsLintConfig } = await import('./ts.js');
tsConfigs = tsLintConfig;
}
})();

const configs = [
bestPractices,
Expand Down
File renamed without changes.
65 changes: 0 additions & 65 deletions configs/commonjs/base.cjs

This file was deleted.

Loading

0 comments on commit 5f1d7fe

Please sign in to comment.