@zairakai/js-dev-tools 3.4.0 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zairakai/js-dev-tools",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "The unified and centralized development toolkit for JavaScript/TypeScript projects - ESLint, Prettier, Stylelint, Knip, Vitest, Git Hooks, and GitLab CI pipeline templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dev-tools",
|
package/scripts/setup-project.sh
CHANGED
|
@@ -254,6 +254,12 @@ setup_file() {
|
|
|
254
254
|
local target="$2"
|
|
255
255
|
local name="$3"
|
|
256
256
|
|
|
257
|
+
# In js-dev-tools itself the source and the target are the same file: removing the target would delete the source
|
|
258
|
+
if [[ "$source" -ef "$target" ]]; then
|
|
259
|
+
track_skipped "$name"
|
|
260
|
+
return 0
|
|
261
|
+
fi
|
|
262
|
+
|
|
257
263
|
if [[ "$CI_MODE" == "true" ]] || [[ "$FORCE_OVERWRITE" == "true" ]]; then
|
|
258
264
|
if [[ -f "$target" ]] && [[ ! -L "$target" ]] && [[ "$CI_MODE" != "true" ]]; then
|
|
259
265
|
if backup_file "$target" 2>/dev/null; then
|
|
@@ -319,7 +319,7 @@ async function update(config) {
|
|
|
319
319
|
const ecosystem = ECOSYSTEMS[detectEcosystem()]
|
|
320
320
|
const before = JSON.parse(run('git', ['show', `HEAD:${ecosystem.file}`]))
|
|
321
321
|
const branch = `${BRANCH_PREFIX}-${new Date().toISOString().slice(0, 10).replaceAll('-', '')}`
|
|
322
|
-
run('git', ['switch', '-
|
|
322
|
+
run('git', ['switch', '-C', branch])
|
|
323
323
|
|
|
324
324
|
// A PHP project was prepared by the job before this one, in its own image: only npm is updated here.
|
|
325
325
|
if ('package.json' === ecosystem.file) {
|