@take-out/scripts 0.1.35-1772258140754 → 0.1.36
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/package.json +2 -2
- package/src/release.ts +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@take-out/scripts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/run.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^0.8.2",
|
|
32
32
|
"@lydell/node-pty": "^1.2.0-beta.3",
|
|
33
|
-
"@take-out/helpers": "0.1.
|
|
33
|
+
"@take-out/helpers": "0.1.36",
|
|
34
34
|
"picocolors": "^1.1.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
package/src/release.ts
CHANGED
|
@@ -39,7 +39,11 @@ await cmd`publish takeout packages to npm`
|
|
|
39
39
|
const shouldPatch = args.patch
|
|
40
40
|
const dirty = finish || undocumented || args.dirty
|
|
41
41
|
const skipTest =
|
|
42
|
-
finish ||
|
|
42
|
+
finish ||
|
|
43
|
+
rePublish ||
|
|
44
|
+
skipAll ||
|
|
45
|
+
args.skipTest ||
|
|
46
|
+
process.argv.includes('--skip-tests')
|
|
43
47
|
const skipBuild = finish || rePublish || skipAll || args.skipBuild
|
|
44
48
|
const dryRun = args.dryRun
|
|
45
49
|
const tamaguiGitUser = args.tamaguiGitUser
|
|
@@ -234,7 +238,14 @@ await cmd`publish takeout packages to npm`
|
|
|
234
238
|
const curVersion = fs.readJSONSync('./packages/helpers/package.json').version
|
|
235
239
|
|
|
236
240
|
// must specify version (unless republishing):
|
|
237
|
-
if (
|
|
241
|
+
if (
|
|
242
|
+
!rePublish &&
|
|
243
|
+
!skipVersion &&
|
|
244
|
+
!canary &&
|
|
245
|
+
!shouldPatch &&
|
|
246
|
+
!shouldMinor &&
|
|
247
|
+
!shouldMajor
|
|
248
|
+
) {
|
|
238
249
|
console.error(`Must specify one of --patch, --minor, or --major`)
|
|
239
250
|
process.exit(1)
|
|
240
251
|
}
|