mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2026-01-01 01:13:32 +00:00
feat 🥁: add no-empty-style-blocks rule to detect and prevent empty CSS blocks
This commit is contained in:
parent
f346002fb0
commit
47d3deb2f1
45 changed files with 2639 additions and 546 deletions
|
|
@ -22,12 +22,12 @@ const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'));
|
|||
const newVersion = packageJson.version;
|
||||
|
||||
// Read src/index.ts
|
||||
let indexTsContent = await fs.readFile(indexTsPath, 'utf-8');
|
||||
const indexTsContent = await fs.readFile(indexTsPath, 'utf-8');
|
||||
|
||||
// Replace the version string in src/index.ts
|
||||
indexTsContent = indexTsContent.replace(/version: '(\d+\.\d+\.\d+)'/, `version: '${newVersion}'`);
|
||||
const updatedIndexTsContent = indexTsContent.replace(/version: '(\d+\.\d+\.\d+)'/, `version: '${newVersion}'`);
|
||||
|
||||
// Write the updated content back to src/index.ts
|
||||
await fs.writeFile(indexTsPath, indexTsContent);
|
||||
await fs.writeFile(indexTsPath, updatedIndexTsContent);
|
||||
|
||||
console.log(`Updated package.json and src/index.ts to version ${newVersion}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue