Skip to content

Commit 679fdeb

Browse files
authored
Update postinstall script per mentor feedback (#130)
- Changed postinstall to use fs.cpSync as requested: node -e 'fs.cpSync(\"./node_modules/prismjs/themes/\", \"./src/static/css/prismjs/\", { recursive: true })'. - Restored yarn.lock to match upstream/main to avoid unintended changes. - Tested on Windows 11 with Node.js 22.14.0; noted quoting issue in PowerShell.
1 parent a7c5e8f commit 679fdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"start": "node src/index.js",
4343
"lint": "prettier --check \"src/**/*.js\" \"src/**/*.css\"",
4444
"prettier:write": "prettier --write \"src/**/*.js\" \"src/**/*.css\"",
45-
"postinstall": "cp node_modules/prismjs/themes/*.css src/static/css/prismjs",
45+
"postinstall": "node -e \"require('fs').cpSync('./node_modules/prismjs/themes/', './src/static/css/prismjs/', { recursive: true })\"",
4646
"prepare": "husky"
4747
}
4848
}

0 commit comments

Comments
 (0)