Skip to content

Commit

Permalink
chore: rename things
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerschbaum committed Sep 15, 2024
1 parent 6bd7afc commit b1fa24a
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ module.exports = {
...baseEslintConfig.parserOptions,
tsconfigRootDir: __dirname,
},
ignorePatterns: [
...(baseEslintConfig.ignorePatterns || []),
'**/codemod-inputs/**',
'**/codemod-outputs/**',
],
rules: {
...baseEslintConfig.rules,
'no-console': 'off',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { test, expect } from 'vitest';
import { loadTypeScriptProgram } from '#pkg/load-typescript-program.js';
import { rewriteModuleSpecifiersOfTypeScriptProject } from '#pkg/transform/index.js';

const PATH_TO_TRANSFORMER_INPUTS = path.join(__dirname, 'transformer-inputs');
const PATH_TO_CODEMOD_INPUTS = path.join(__dirname, 'codemod-inputs');
const PATH_TO_CODEMOD_OUTPUTS = path.join(__dirname, 'codemod-outputs');

test('project-1', async () => {
const projectAbsolutePath = path.join(PATH_TO_TRANSFORMER_INPUTS, 'project-1', 'tsconfig.json');
const projectAbsolutePath = path.join(PATH_TO_CODEMOD_INPUTS, 'project-1', 'tsconfig.json');
const basepath = path.dirname(projectAbsolutePath);

const typeScriptProgram = await loadTypeScriptProgram({ project: projectAbsolutePath, basepath });
Expand All @@ -23,14 +24,14 @@ test('project-1', async () => {
);
const relativePathFromRootDir = path.relative(basepath, absolutePathSourceFile);
await expect(newText).toMatchFileSnapshot(
`./transformer-outputs/project-1/${relativePathFromRootDir}`,
path.join(PATH_TO_CODEMOD_OUTPUTS, 'project-1', relativePathFromRootDir),
);
}),
);
});

test('project-2', async () => {
const projectAbsolutePath = path.join(PATH_TO_TRANSFORMER_INPUTS, 'project-2', 'tsconfig.json');
const projectAbsolutePath = path.join(PATH_TO_CODEMOD_INPUTS, 'project-2', 'tsconfig.json');
const basepath = path.dirname(projectAbsolutePath);

const typeScriptProgram = await loadTypeScriptProgram({ project: projectAbsolutePath, basepath });
Expand All @@ -45,7 +46,7 @@ test('project-2', async () => {
);
const relativePathFromRootDir = path.relative(basepath, absolutePathSourceFile);
await expect(newText).toMatchFileSnapshot(
`./transformer-outputs/project-2/${relativePathFromRootDir}`,
path.join(PATH_TO_CODEMOD_OUTPUTS, 'project-2', relativePathFromRootDir),
);
}),
);
Expand Down
1 change: 0 additions & 1 deletion packages/runtime-extensions-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"nuke:artifacts": "del-cli dist \"*.tsbuildinfo\""
},
"dependencies": {
"@pkerschbaum/commons-node": "workspace:^",
"source-map-support": "^0.5.21"
},
"devDependencies": {
Expand Down
9 changes: 1 addition & 8 deletions platform/config-eslint/eslint-ecma.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@ module.exports = {
'plugin:eslint-comments/recommended',
'prettier',
],
ignorePatterns: [
'.eslintrc.cjs',
'babel.config.mjs',
'dist/**/*',
'nyc.config.cjs',
'**/transformer-inputs/**',
'**/transformer-outputs/**',
],
ignorePatterns: ['.eslintrc.cjs', 'babel.config.mjs', 'dist/**/*'],
rules: {
curly: 'error',
'multiline-comment-style': ['error', 'starred-block'],
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1fa24a

Please sign in to comment.