Skip to content

Commit

Permalink
Added rimraf and symlink-dir to fix the issue with symlinking on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KaniRobinson committed Sep 9, 2024
1 parent fb4aed1 commit ad73f11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"type": "module",
"scripts": {
"build": "vite build",
"link:atom": "shx rm -rf $(pwd)/public/images && shx ln -s $(pwd)/resources/themes/atom/images $(pwd)/public/images",
"link:atom": "rimraf public/images && symlink-dir resources/themes/atom/images public/images",
"dev:atom": "vite --config resources/themes/atom/vite.config.js",
"build:atom": "vite build --config resources/themes/atom/vite.config.js",
"link:base": "shx rm -rf $(pwd)/public/images && shx ln -s $(pwd)/resources/themes/base/images $(pwd)/public/images",
"link:base": "rimraf public/images && symlink-dir resources/themes/base/images public/images",
"dev:base": "vite --config resources/themes/base/vite.config.js",
"build:base": "vite build --config resources/themes/base/vite.config.js",
"format": "prettier \"resources/**/*.{js,ts,vue,blade}\" --write"
Expand All @@ -28,7 +28,9 @@
"tailwindcss": "^3.1.6",
"toastify-js": "^1.12.0",
"turbolinks": "^5.2.0",
"vite": "^5.0"
"vite": "^5.0",
"rimraf": "^5.0.0",
"symlink-dir": "^4.0.0"
},
"dependencies": {
"@inertiajs/vue3": "^1.2.0",
Expand All @@ -37,4 +39,4 @@
"vue": "^3.4.35",
"vue-i18n": "9"
}
}
}

0 comments on commit ad73f11

Please sign in to comment.