create-ton 0.13.0 → 0.15.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.15.0] - 2024-07-12
9
+
10
+ ### Added
11
+
12
+ - Added Bun support
13
+
14
+ ### Changed
15
+
16
+ - Updated template .gitignore
17
+ - Updated template dependencies
18
+
19
+ ## [0.14.0] - 2024-05-27
20
+
21
+ ### Changed
22
+
23
+ - Updated template dependencies
24
+
8
25
  ## [0.13.0] - 2024-03-27
9
26
 
10
27
  ### Changed
@@ -177,4 +194,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
177
194
 
178
195
  ### Changed
179
196
 
180
- - Contract template files are no longer stored in this package, templates from [blueprint](https://github.com/ton-community/blueprint) are now used instead
197
+ - Contract template files are no longer stored in this package, templates from [blueprint](https://github.com/ton-community/blueprint) are now used instead
package/dist/cli.js CHANGED
@@ -82,6 +82,17 @@ temp
82
82
  build
83
83
  dist
84
84
  .DS_Store
85
+
86
+ # VS Code
87
+ .vscode/*
88
+ .history/
89
+ *.vsix
90
+
91
+ # IDEA files
92
+ .idea
93
+
94
+ # VIM
95
+ Session.vim
85
96
  `);
86
97
  for (const file of FILES_WITH_NAME_TEMPLATE) {
87
98
  await fs_extra_1.default.writeFile(path_1.default.join(projectPath, file), (await fs_extra_1.default.readFile(path_1.default.join(basePath, file))).toString().replace(NAME_TEMPLATE, name));
@@ -99,21 +110,27 @@ dist
99
110
  case 'pnpm':
100
111
  (0, child_process_1.execSync)('pnpm install', execOpts);
101
112
  break;
113
+ case 'bun':
114
+ (0, child_process_1.execSync)('bun install', execOpts);
115
+ break;
102
116
  default:
103
117
  (0, child_process_1.execSync)('npm install', execOpts);
104
118
  break;
105
119
  }
106
120
  console.log(`\n[3/${steps}] Creating your first contract...`);
107
- let execCommand = 'npm';
121
+ let execCommand = 'npm exec';
108
122
  switch (pkgManager) {
109
123
  case 'yarn':
110
- execCommand = 'yarn';
124
+ execCommand = 'yarn run';
111
125
  break;
112
126
  case 'pnpm':
113
- execCommand = 'pnpm';
127
+ execCommand = 'pnpm exec';
128
+ break;
129
+ case 'bun':
130
+ execCommand = 'bun x';
114
131
  break;
115
132
  }
116
- (0, child_process_1.execSync)(`${execCommand} exec blueprint${pkgManager === 'pnpm' ? '' : ' --'} create ${contractName} --type ${variant}`, execOpts);
133
+ (0, child_process_1.execSync)(`${execCommand} blueprint${pkgManager !== 'npm' ? '' : ' --'} create ${contractName} --type ${variant}`, execOpts);
117
134
  try {
118
135
  (0, child_process_1.execSync)('git init', execOpts);
119
136
  }
@@ -7,18 +7,18 @@
7
7
  "test": "jest --verbose"
8
8
  },
9
9
  "devDependencies": {
10
- "@ton/blueprint": "^0.19.0",
11
- "@ton/sandbox": "^0.17.0",
10
+ "@ton/blueprint": "^0.22.0",
11
+ "@ton/sandbox": "^0.20.0",
12
12
  "@ton/test-utils": "^0.4.2",
13
13
  "@types/jest": "^29.5.12",
14
- "@types/node": "^20.11.20",
14
+ "@types/node": "^20.14.10",
15
15
  "jest": "^29.7.0",
16
- "prettier": "^3.2.5",
17
- "@ton/ton": "^13.11.1",
16
+ "prettier": "^3.3.2",
17
+ "@ton/ton": "^13.11.2",
18
18
  "@ton/core": "~0",
19
19
  "@ton/crypto": "^3.2.0",
20
- "ts-jest": "^29.1.2",
20
+ "ts-jest": "^29.2.0",
21
21
  "ts-node": "^10.9.2",
22
- "typescript": "^5.4.3"
22
+ "typescript": "^5.5.3"
23
23
  }
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ton",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "license": "MIT",
5
5
  "description": "Tool to quickly create TON projects",
6
6
  "author": "TonTech",