lincd-cli
Version:
Command line tools for the lincd.js library
32 lines • 1.22 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
const utils_js_1 = require("../utils.js");
const getLincdSources = () => {
// return plugin.withOptions(
// () => {},
// () => {
const sources = [];
// Always include your app source
// sources.push('./src/**/*.{js,ts,tsx}');
// Now dynamically add LINCD packages
const packageJson = JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(process.cwd(), 'package.json'), 'utf-8'));
const lincdDeps = (0, utils_js_1.getLINCDDependencies)(packageJson);
lincdDeps.forEach(([name, packagePath]) => {
sources.push(`${packagePath}/lib/**/*.{js,ts,tsx,mjs}`);
});
// console.log('sources:', sources.join("\n"));
return sources;
// return {};
// return {
// // Extend Tailwind's `content` config
// content: sources,
// };
// });
};
exports.default = getLincdSources;
//# sourceMappingURL=lincd-tailwind-sources.js.map