ts-init-template 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +1 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -21,12 +21,10 @@ try{
21
21
 
22
22
 
23
23
  // Check if package.json exists
24
- const pkgpath = path.join(__dirname, 'package.json')
24
+ const pkgpath = path.join(process.cwd(), 'package.json')
25
25
  try {
26
26
  await fs.access(pkgpath);
27
27
  console.log('package.json exists, proceeding with script execution.');
28
-
29
- console.log(pkgpath);
30
28
  // Read and parse package.json
31
29
  const content = await fs.readFile(pkgpath, 'utf8');
32
30
  const pkg = JSON.parse(content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-init-template",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A TS project template for my ts projects. This script will setup all the ts enviroment with 1 command. ",
5
5
  "main": "index.js",
6
6
  "author": "SigismundBT",