Update
This commit is contained in:
@ -316,23 +316,29 @@ async function useText(path: string) {
|
||||
return [state, setState] as const;
|
||||
}
|
||||
|
||||
async function main() {
|
||||
console.log('Building local rules...');
|
||||
await buildLocalRules();
|
||||
|
||||
console.log('Building type definitions...');
|
||||
function bundleType(source: string, output: string) {
|
||||
execSync(
|
||||
[
|
||||
'npx',
|
||||
'dts-bundle-generator',
|
||||
'"./src/index.ts"',
|
||||
JSON.stringify(source),
|
||||
'-o',
|
||||
'"./dist/index.d.ts"',
|
||||
JSON.stringify(output),
|
||||
'--project',
|
||||
'"./tsconfig.build.json"',
|
||||
'--no-check',
|
||||
].join(' '),
|
||||
);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
console.log('Building local rules...');
|
||||
await buildLocalRules();
|
||||
|
||||
console.log('Building type definitions...');
|
||||
bundleType('./src/index.ts', './dist/index.d.ts');
|
||||
bundleType('./src/prettier.ts', './dist/prettier.d.ts');
|
||||
bundleType('./src/types.ts', './dist/types.d.ts');
|
||||
|
||||
console.log('Building packages...');
|
||||
await Promise.all([
|
||||
@ -345,6 +351,8 @@ async function main() {
|
||||
bundle('./src/rules/index.ts', './dist/eslint-plugin-rules/index.js'),
|
||||
bundle('./src/local/index.ts', './dist/eslint-plugin-local/index.js'),
|
||||
bundle('./src/index.ts', './dist/index.js'),
|
||||
bundle('./src/types.ts', './dist/types.js'),
|
||||
bundle('./src/prettier.ts', './dist/prettier.js'),
|
||||
editPackageJson(),
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user