Fix incorrect filenames in scripts/ast
MODIFY
scripts/ast/_constants.cjs
scripts/ast/_constants.cjs
@@ -9,7 +9,7 @@ const path = require('path');
const fs = require('fs');
const root = path.join(__dirname, '..', '..');
-const packages = path.join(root, 'packages', 'romejs');
+const packages = path.join(root, 'packages', '@romejs');
const generatorsFolder = path.join(packages, 'js-generator', 'generators');
const analysisFolder = path.join(packages, 'js-analysis', 'evaluators');
const astFolder = path.join(packages, 'js-ast');

MODIFY
scripts/ast/add.cjs
scripts/ast/add.cjs
@@ -93,4 +93,4 @@ export default function ${nodeType}(node: AnyNode) {
`;
write(analysisDefFile, analysisContent);
-require('./update-ast-types.js');
+require('./update.cjs');

MODIFY
scripts/ast/remove.cjs
scripts/ast/remove.cjs
@@ -24,4 +24,4 @@ fs.unlinkSync(path.join(generatorsFolder, filename + '.ts'));
fs.unlinkSync(path.join(analysisFolder, filename + '.ts'));
fs.unlinkSync(path.join(astFolder, filename + '.ts'));
-require('./update-ast-types.cjs');
+require('./update.cjs');

MODIFY
scripts/ast/rename.cjs
scripts/ast/rename.cjs
@@ -44,4 +44,4 @@ rename(
path.join(astFolder, toType + '.ts'),
);
-require('./update-ast-types.cjs');
+require('./update.cjs');

Fix incorrect filenames in scripts/ast