@ryanatkn/gro 0.115.2 → 0.115.3
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/dist/package.js +2 -2
- package/dist/publish.task.d.ts +6 -0
- package/dist/publish.task.js +6 -3
- package/package.json +1 -1
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// generated by src/lib/package.gen.ts
|
|
2
2
|
export const package_json = {
|
|
3
3
|
name: '@ryanatkn/gro',
|
|
4
|
-
version: '0.115.
|
|
4
|
+
version: '0.115.3',
|
|
5
5
|
description: 'task runner and toolkit extending SvelteKit',
|
|
6
6
|
motto: 'generate, run, optimize',
|
|
7
7
|
icon: '🌰',
|
|
@@ -236,7 +236,7 @@ export const package_json = {
|
|
|
236
236
|
};
|
|
237
237
|
export const src_json = {
|
|
238
238
|
name: '@ryanatkn/gro',
|
|
239
|
-
version: '0.115.
|
|
239
|
+
version: '0.115.3',
|
|
240
240
|
modules: {
|
|
241
241
|
'.': {
|
|
242
242
|
path: 'index.ts',
|
package/dist/publish.task.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ export declare const Args: z.ZodObject<{
|
|
|
10
10
|
'no-check': z.ZodDefault<z.ZodBoolean>;
|
|
11
11
|
install: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
'no-install': z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
build: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
'no-build': z.ZodDefault<z.ZodBoolean>;
|
|
13
15
|
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
build: boolean;
|
|
14
17
|
install: boolean;
|
|
15
18
|
origin: string & z.BRAND<"Git_Origin">;
|
|
16
19
|
branch: string & z.BRAND<"Git_Branch">;
|
|
@@ -18,6 +21,7 @@ export declare const Args: z.ZodObject<{
|
|
|
18
21
|
'no-install': boolean;
|
|
19
22
|
check: boolean;
|
|
20
23
|
dry: boolean;
|
|
24
|
+
'no-build': boolean;
|
|
21
25
|
preserve_changelog: boolean;
|
|
22
26
|
'no-check': boolean;
|
|
23
27
|
}, {
|
|
@@ -30,6 +34,8 @@ export declare const Args: z.ZodObject<{
|
|
|
30
34
|
'no-check'?: boolean | undefined;
|
|
31
35
|
install?: boolean | undefined;
|
|
32
36
|
'no-install'?: boolean | undefined;
|
|
37
|
+
build?: boolean | undefined;
|
|
38
|
+
'no-build'?: boolean | undefined;
|
|
33
39
|
}>;
|
|
34
40
|
export type Args = z.infer<typeof Args>;
|
|
35
41
|
export declare const task: Task<Args>;
|
package/dist/publish.task.js
CHANGED
|
@@ -39,13 +39,15 @@ export const Args = z
|
|
|
39
39
|
'no-install': z
|
|
40
40
|
.boolean({ description: 'opt out of npm installing before building' })
|
|
41
41
|
.default(false),
|
|
42
|
+
build: z.boolean({ description: 'dual of no-build' }).default(true),
|
|
43
|
+
'no-build': z.boolean({ description: 'opt out of building' }).default(false),
|
|
42
44
|
})
|
|
43
45
|
.strict();
|
|
44
46
|
export const task = {
|
|
45
47
|
summary: 'bump version, publish to npm, and git push',
|
|
46
48
|
Args,
|
|
47
49
|
run: async ({ args, log, invoke_task }) => {
|
|
48
|
-
const { branch, changelog, preserve_changelog, dry, check, install,
|
|
50
|
+
const { branch, origin, changelog, preserve_changelog, dry, check, install, build } = args;
|
|
49
51
|
if (dry) {
|
|
50
52
|
log.info(green('dry run!'));
|
|
51
53
|
}
|
|
@@ -106,8 +108,9 @@ export const task = {
|
|
|
106
108
|
throw new Task_Error('changeset version failed: are there any changes?');
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
if (build) {
|
|
112
|
+
await invoke_task('build', { install });
|
|
113
|
+
}
|
|
111
114
|
if (dry) {
|
|
112
115
|
log.info('publishing branch ' + branch);
|
|
113
116
|
log.info(green('dry run complete!'));
|