Skip to content

Commit

Permalink
Committing Prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Prettier Bot committed Sep 11, 2024
1 parent 29a6e56 commit 50825da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions fix-paths.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { readFile, writeFile } from 'fs/promises';
import path from 'path';
import { readFile, writeFile } from 'fs/promises'
import path from 'path'

const filePath = path.join(process.cwd(), 'dist/index.html');
const filePath = path.join(process.cwd(), 'dist/index.html')

Check failure on line 4 in fix-paths.js

View workflow job for this annotation

GitHub Actions / lint

'process' is not defined

try {
const data = await readFile(filePath, 'utf8');
const data = await readFile(filePath, 'utf8')

const result = data.replace(/\/assets\//g, './assets/');
const result = data.replace(/\/assets\//g, './assets/')

await writeFile(filePath, result, 'utf8');
console.log('Successfully updated index.html paths!');
await writeFile(filePath, result, 'utf8')
console.log('Successfully updated index.html paths!')
} catch (err) {
console.error('Error processing index.html:', err);
console.error('Error processing index.html:', err)
}
2 changes: 1 addition & 1 deletion package-lock.json

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

0 comments on commit 50825da

Please sign in to comment.