create-ton 0.14.0 → 0.16.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 +18 -1
- package/dist/cli.js +21 -4
- package/dist/template/package.json +9 -9
- package/package.json +1 -1
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.16.0] - 2024-09-16
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Updated template dependencies
|
|
13
|
+
|
|
14
|
+
## [0.15.0] - 2024-07-12
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Added Bun support
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Updated template .gitignore
|
|
23
|
+
- Updated template dependencies
|
|
24
|
+
|
|
8
25
|
## [0.14.0] - 2024-05-27
|
|
9
26
|
|
|
10
27
|
### Changed
|
|
@@ -183,4 +200,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
183
200
|
|
|
184
201
|
### Changed
|
|
185
202
|
|
|
186
|
-
- Contract template files are no longer stored in this package, templates from [blueprint](https://github.com/ton-community/blueprint) are now used instead
|
|
203
|
+
- 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}
|
|
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.
|
|
11
|
-
"@ton/sandbox": "^0.
|
|
10
|
+
"@ton/blueprint": "^0.24.0",
|
|
11
|
+
"@ton/sandbox": "^0.21.0",
|
|
12
12
|
"@ton/test-utils": "^0.4.2",
|
|
13
|
-
"@types/jest": "^29.5.
|
|
14
|
-
"@types/node": "^
|
|
13
|
+
"@types/jest": "^29.5.13",
|
|
14
|
+
"@types/node": "^22.5.5",
|
|
15
15
|
"jest": "^29.7.0",
|
|
16
|
-
"prettier": "^3.
|
|
17
|
-
"@ton/ton": "^
|
|
16
|
+
"prettier": "^3.3.3",
|
|
17
|
+
"@ton/ton": "^15.0.0",
|
|
18
18
|
"@ton/core": "~0",
|
|
19
|
-
"@ton/crypto": "^3.
|
|
20
|
-
"ts-jest": "^29.
|
|
19
|
+
"@ton/crypto": "^3.3.0",
|
|
20
|
+
"ts-jest": "^29.2.5",
|
|
21
21
|
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.
|
|
22
|
+
"typescript": "^5.6.2"
|
|
23
23
|
}
|
|
24
24
|
}
|