Skip to content

Commit

Permalink
Update package version to 1.0.3 and fix path replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
kolirt committed Mar 17, 2024
1 parent b6ece02 commit 222d5ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-robots",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"description": "Vite plugin for generating robots.txt for production and development builds",
"author": "kolirt",
Expand Down
4 changes: 2 additions & 2 deletions src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export function log(rootConfig: ResolvedConfig, robotsPath: string, robotsOutput
rootConfig.logger.info('')
rootConfig.logger.info(`✨ ${ansi.cyan('[vite-plugin-robots]')}:`)

const fullPathFrom = path.parse(robotsPath.replace(__dirname, '').replace(/^\//, ''))
const fullPathTo = path.parse(robotsOutputPath.replace(__dirname, '').replace(/^\//, ''))
const fullPathFrom = path.parse(robotsPath.replace(rootConfig.root, '').replace(/^\//, ''))
const fullPathTo = path.parse(robotsOutputPath.replace(rootConfig.root, '').replace(/^\//, ''))

rootConfig.logger.info(
ansi.green('✓ Copied: ') +
Expand Down

0 comments on commit 222d5ca

Please sign in to comment.