@wwkit/shared 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/shell.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwkit/shared",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "author": "bluesliu <langcai163@163.com>",
5
5
  "description": "Shared utilities for @wwkit packages — config loader, platform detection",
6
6
  "type": "module",
package/src/shell.js CHANGED
@@ -252,7 +252,7 @@ const marker = `# >>> wwkit ${name} >>>`
252
252
  blockEnd = existing.length
253
253
  }
254
254
  const currentBlock = existing.slice(beginIdx, blockEnd)
255
- const newBlock = `${marker}\n${line}`
255
+ const newBlock = `${marker}\n${line}\n`
256
256
  if (currentBlock.trim() === newBlock.trim()) return false
257
257
  existing = existing.slice(0, beginIdx) + newBlock + existing.slice(blockEnd)
258
258
  fs.writeFileSync(profilePath, existing, 'utf8')