pgo-ui 1.0.3 → 1.0.4

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/readme.cjs +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgo-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A Vue 3 component library with PGO design system",
5
5
  "private": false,
6
6
  "type": "module",
package/src/readme.cjs CHANGED
@@ -2,12 +2,13 @@ const fs = require('fs');
2
2
  const path = require('path');
3
3
 
4
4
  const source = path.join(__dirname, '..', 'PGO UI README.md');
5
- const dest = path.join(process.cwd(), 'PGO UI README.md');
5
+ const destRoot = process.env.INIT_CWD || process.cwd();
6
+ const dest = path.join(destRoot, 'PGO UI README.md');
6
7
 
7
8
  try {
8
9
  if (fs.existsSync(source)) {
9
10
  fs.copyFileSync(source, dest);
10
- console.log('PGO UI README.md copied to project root.');
11
+ console.log('PGO UI README.md copied to project root:', dest);
11
12
  } else {
12
13
  console.warn('PGO UI README.md not found in package.');
13
14
  }