@ryanatkn/gro 0.173.0 → 0.173.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"publish.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/publish.task.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAYtB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;kBAgCf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA2I3B,CAAC"}
1
+ {"version":3,"file":"publish.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/publish.task.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAYtB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;kBAgCf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAgJ3B,CAAC"}
@@ -69,9 +69,12 @@ export const task = {
69
69
  }
70
70
  await git_pull(origin, branch);
71
71
  }
72
- // Check before proceeding.
72
+ // Install packages to ensure deps are current.
73
+ // Handles cases like branch switches where package.json changed.
74
+ await invoke_task('sync', { install: true });
75
+ // Check before proceeding, defaults to true.
73
76
  if (check) {
74
- await invoke_task('check', { workspace: true });
77
+ await invoke_task('check', { workspace: true, sync: false });
75
78
  }
76
79
  let version;
77
80
  let optional_and_version_unchanged = false;
@@ -120,8 +123,9 @@ export const task = {
120
123
  }
121
124
  }
122
125
  // Build after the version is bumped so the new version is in the build as needed.
126
+ // Skip sync and install because we already handled both above.
123
127
  if (build) {
124
- await invoke_task('build');
128
+ await invoke_task('build', { sync: false, install: false });
125
129
  }
126
130
  // Return early if there are no changes and publishing is optional, but after building,
127
131
  // so if callers want to optimize away building
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.173.0",
3
+ "version": "0.173.1",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
5
  "motto": "generate, run, optimize",
6
6
  "glyph": "🌰",
@@ -102,9 +102,13 @@ export const task: Task<Args> = {
102
102
  await git_pull(origin, branch);
103
103
  }
104
104
 
105
- // Check before proceeding.
105
+ // Install packages to ensure deps are current.
106
+ // Handles cases like branch switches where package.json changed.
107
+ await invoke_task('sync', {install: true});
108
+
109
+ // Check before proceeding, defaults to true.
106
110
  if (check) {
107
- await invoke_task('check', {workspace: true});
111
+ await invoke_task('check', {workspace: true, sync: false});
108
112
  }
109
113
 
110
114
  let version!: string;
@@ -162,8 +166,9 @@ export const task: Task<Args> = {
162
166
  }
163
167
 
164
168
  // Build after the version is bumped so the new version is in the build as needed.
169
+ // Skip sync and install because we already handled both above.
165
170
  if (build) {
166
- await invoke_task('build');
171
+ await invoke_task('build', {sync: false, install: false});
167
172
  }
168
173
 
169
174
  // Return early if there are no changes and publishing is optional, but after building,