oraksoft-node-tools 0.0.1 → 0.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.
package/README.md CHANGED
@@ -6,12 +6,12 @@ Node.js projeleriniz için kullanışlı CLI araçları koleksiyonu.
6
6
 
7
7
  ### Global kurulum (önerilen)
8
8
  ```bash
9
- npm install -g oraksoft-node-tools
9
+ pnpm install -g oraksoft-node-tools
10
10
  ```
11
11
 
12
12
  ### Proje bazında kurulum
13
13
  ```bash
14
- npm install oraksoft-node-tools --save-dev
14
+ pnpm install oraksoft-node-tools --save-dev
15
15
  ```
16
16
 
17
17
  ## Komutlar
File without changes
File without changes
File without changes
File without changes
package/lib/env-change.js CHANGED
@@ -2,16 +2,6 @@ import fs from 'fs';
2
2
  import path from 'path';
3
3
 
4
4
  export function envChange() {
5
- // Çalışma dizinini tespit et (komutun çalıştırıldığı yer)
6
- const projectRoot = process.cwd();
7
-
8
- // Arşivlenecek dosya ve klasörlerin yolları
9
- const packageJsonPath = path.join(projectRoot, 'package.json');
10
-
11
- let packageJson = {};
12
- if (fs.existsSync(packageJsonPath)) {
13
- packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
14
- }
15
5
 
16
6
  // Komut satırından argüman alma
17
7
  // process.argv[0] = node executable
@@ -23,12 +13,24 @@ export function envChange() {
23
13
 
24
14
  // Argüman kontrolü ve yardım mesajı
25
15
  if (process.argv.includes('--help') || process.argv.includes('-h')) {
16
+ console.log('fi-env-change version 0.0.2');
26
17
  console.log('Kullanım: fi-env-change [ortam_adı]');
27
18
  console.log('Örnek: fi-env-change dev');
28
19
  console.log('Argüman verilmezse package.json\'daki fiEnvChangeStatus değeri kullanılır.');
29
20
  process.exit(0);
30
21
  }
31
22
 
23
+ // Çalışma dizinini tespit et (komutun çalıştırıldığı yer)
24
+ const projectRoot = process.cwd();
25
+
26
+ // Arşivlenecek dosya ve klasörlerin yolları
27
+ const packageJsonPath = path.join(projectRoot, 'package.json');
28
+
29
+ let packageJson = {};
30
+ if (fs.existsSync(packageJsonPath)) {
31
+ packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
32
+ }
33
+
32
34
  if (!txEnv) {
33
35
  console.error('❌ Ortam adı belirtilmedi ve package.json\'da fiEnvChangeStatus bulunamadı.');
34
36
  console.log('Kullanım: fi-env-change [ortam_adı]');
package/package.json CHANGED
@@ -1,46 +1,45 @@
1
- {
2
- "name": "oraksoft-node-tools",
3
- "version": "0.0.1",
4
- "description": "CLI araçları koleksiyonu - fi-copy-deps, fi-deploy-ftp, fi-deploy-zip ve fi-env-change komutları",
5
- "main": "lib/index.js",
6
- "type": "module",
7
- "bin": {
8
- "fi-copy-deps": "./bin/fi-copy-deps.js",
9
- "fi-deploy-ftp": "./bin/fi-deploy-ftp.js",
10
- "fi-deploy-zip": "./bin/fi-deploy-zip.js",
11
- "fi-env-change": "./bin/fi-env-change.js"
12
- },
13
- "scripts": {
14
- "test": "echo \"Error: no test specified\" && exit 1",
15
- "prepublishOnly": "npm run build",
16
- "build": "echo \"Build completed\""
17
- },
18
- "keywords": [
19
- "cli",
20
- "deploy",
21
- "ftp",
22
- "zip",
23
- "copy-deps",
24
- "env-change",
25
- "oraksoft",
26
- "development-tools"
27
- ],
28
- "author": "Oraksoft",
29
- "license": "MIT",
30
- "dependencies": {
31
- "basic-ftp": "^5.0.5",
32
- "tar": "^7.4.3"
33
- },
34
- "engines": {
35
- "node": ">=14.0.0"
36
- },
37
- "preferGlobal": true,
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/engtuncay/oraksoft-node-tools.git"
41
- },
42
- "bugs": {
43
- "url": "https://github.com/engtuncay/oraksoft-node-tools/issues"
44
- },
45
- "homepage": "https://github.com/engtuncay/oraksoft-node-tools#readme"
1
+ {
2
+ "name": "oraksoft-node-tools",
3
+ "version": "0.0.2",
4
+ "description": "CLI araçları koleksiyonu - fi-copy-deps, fi-deploy-ftp, fi-deploy-zip ve fi-env-change komutları",
5
+ "main": "lib/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "fi-copy-deps": "./bin/fi-copy-deps.js",
9
+ "fi-deploy-ftp": "./bin/fi-deploy-ftp.js",
10
+ "fi-deploy-zip": "./bin/fi-deploy-zip.js",
11
+ "fi-env-change": "./bin/fi-env-change.js"
12
+ },
13
+ "keywords": [
14
+ "cli",
15
+ "deploy",
16
+ "ftp",
17
+ "zip",
18
+ "copy-deps",
19
+ "env-change",
20
+ "oraksoft",
21
+ "development-tools"
22
+ ],
23
+ "author": "Oraksoft",
24
+ "license": "MIT",
25
+ "dependencies": {
26
+ "basic-ftp": "^5.0.5",
27
+ "tar": "^7.4.3"
28
+ },
29
+ "engines": {
30
+ "node": ">=14.0.0"
31
+ },
32
+ "preferGlobal": true,
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/engtuncay/oraksoft-node-tools.git"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/engtuncay/oraksoft-node-tools/issues"
39
+ },
40
+ "homepage": "https://github.com/engtuncay/oraksoft-node-tools#readme",
41
+ "scripts": {
42
+ "test": "echo \"Error: no test specified\" && exit 1",
43
+ "build": "echo \"Build completed\""
44
+ }
46
45
  }