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(),
|
||||
]);
|
||||
|
||||
|
@ -1,13 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
git-pull() {
|
||||
name=$1
|
||||
git config pull.rebase true
|
||||
git config rebase.autoStash true
|
||||
git pull --quiet
|
||||
ref=$(git log -1 --pretty='{"hash":"%H","date":"%aI","committer":"%cn","subject":"%s"}')
|
||||
yq -iP ".$name=$ref" ../../src/commits.json -o json
|
||||
}
|
||||
|
||||
pull() {
|
||||
echo "🚛 Pulling $2"
|
||||
if [ ! -d "packages/$2" ]; then
|
||||
echo "📦 Repository not found, cloning..."
|
||||
git clone "https://github.com/$1/$2.git" "packages/$2"
|
||||
fi
|
||||
(cd "packages/$2" && git config pull.rebase true && git config rebase.autoStash true && git pull)
|
||||
(cd "packages/$2" && git-pull "$2")
|
||||
echo
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user