Skip to content

Commit

Permalink
depcheck solved
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <[email protected]>
  • Loading branch information
ADI-ROXX committed Feb 6, 2025
1 parent bc31441 commit 4f0a259
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/generateDepcheckrcJaegerUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as fs from 'fs';
import * as path from 'path';
import { babelConfiguration } from 'jaeger-ui/test/babel-transform';
import { babelConfiguration } from 'jaeger-ui/test/babel-transform.js';

const packageNames = [
...babelConfiguration.presets.flatMap(preset => {
Expand All @@ -42,7 +42,11 @@ const outputFile = process.argv[2];
if (!outputFile) {
process.exit(1);
}
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const depcheckrcPath = path.resolve(__dirname, outputFile);

fs.writeFileSync(depcheckrcPath, JSON.stringify(depcheckrcContent, null, 2));
6 changes: 5 additions & 1 deletion scripts/generateDepcheckrcPlexus.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as fs from 'fs';
import * as path from 'path';
import { getBabelConfig } from '@jaegertracing/plexus/babel.config';
import getBabelConfig from '../packages/plexus/babel.config.js';

const babelConfiguration = getBabelConfig({
env: () => {
Expand Down Expand Up @@ -52,7 +52,11 @@ const outputFile = process.argv[2];
if (!outputFile) {
process.exit(1);
}
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const depcheckrcPath = path.resolve(__dirname, outputFile);

fs.writeFileSync(depcheckrcPath, JSON.stringify(depcheckrcContent, null, 2));

0 comments on commit 4f0a259

Please sign in to comment.