@ryanatkn/gro 0.129.14 → 0.129.15

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.
@@ -13,8 +13,11 @@ export declare const Args: z.ZodObject<{
13
13
  'no-package_json': z.ZodDefault<z.ZodBoolean>;
14
14
  lint: z.ZodDefault<z.ZodBoolean>;
15
15
  'no-lint': z.ZodDefault<z.ZodBoolean>;
16
+ sync: z.ZodDefault<z.ZodBoolean>;
17
+ 'no-sync': z.ZodDefault<z.ZodBoolean>;
16
18
  workspace: z.ZodDefault<z.ZodBoolean>;
17
19
  }, "strict", z.ZodTypeAny, {
20
+ sync: boolean;
18
21
  package_json: boolean;
19
22
  format: boolean;
20
23
  typecheck: boolean;
@@ -27,8 +30,10 @@ export declare const Args: z.ZodObject<{
27
30
  'no-package_json': boolean;
28
31
  lint: boolean;
29
32
  'no-lint': boolean;
33
+ 'no-sync': boolean;
30
34
  workspace: boolean;
31
35
  }, {
36
+ sync?: boolean | undefined;
32
37
  package_json?: boolean | undefined;
33
38
  format?: boolean | undefined;
34
39
  typecheck?: boolean | undefined;
@@ -41,6 +46,7 @@ export declare const Args: z.ZodObject<{
41
46
  'no-package_json'?: boolean | undefined;
42
47
  lint?: boolean | undefined;
43
48
  'no-lint'?: boolean | undefined;
49
+ 'no-sync'?: boolean | undefined;
44
50
  workspace?: boolean | undefined;
45
51
  }>;
46
52
  export type Args = z.infer<typeof Args>;
@@ -1 +1 @@
1
- {"version":3,"file":"check.task.d.ts","sourceRoot":"../src/lib/","sources":["check.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA4D3B,CAAC"}
1
+ {"version":3,"file":"check.task.d.ts","sourceRoot":"../src/lib/","sources":["check.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAyD3B,CAAC"}
@@ -18,8 +18,10 @@ export const Args = z
18
18
  'no-package_json': z.boolean({ description: 'opt out of package.json check' }).default(false),
19
19
  lint: z.boolean({ description: 'dual of no-lint' }).default(true),
20
20
  'no-lint': z.boolean({ description: 'opt out of linting' }).default(false),
21
+ sync: z.boolean({ description: 'dual of no-sync' }).default(true),
22
+ 'no-sync': z.boolean({ description: 'opt out of syncing' }).default(false),
21
23
  workspace: z
22
- .boolean({ description: 'ensure a clean git workspace, useful for CI' })
24
+ .boolean({ description: 'ensure a clean git workspace, useful for CI, also implies --no-sync' })
23
25
  .default(false),
24
26
  })
25
27
  .strict();
@@ -27,14 +29,11 @@ export const task = {
27
29
  summary: 'check that everything is ready to commit',
28
30
  Args,
29
31
  run: async ({ args, invoke_task, log, config }) => {
30
- const { typecheck, test, gen, format, package_json, lint, workspace } = args;
31
- // When checking the workspace, which was added for CI,
32
- // don't sync, because the check will fail with misleading errors.
33
- // For example it would cause the gen check to be a false negative,
34
- // and then the workspace check would fail with the new files.
35
- const sync = !workspace;
36
- if (sync) {
37
- await invoke_task('sync');
32
+ const { typecheck, test, gen, format, package_json, lint, sync, workspace } = args;
33
+ // When checking the workspace, which was added for CI, never sync.
34
+ // Setup like `npm i` and `sveltekit-sync` should be done in the CI setup.
35
+ if (sync && !workspace) {
36
+ await invoke_task('sync', { gen: false }); // never generate because `gro gen --check` runs below
38
37
  }
39
38
  if (typecheck) {
40
39
  await invoke_task('typecheck');
@@ -9,13 +9,13 @@ export declare const Args: z.ZodObject<{
9
9
  }, "strict", z.ZodTypeAny, {
10
10
  sync: boolean;
11
11
  watch: boolean;
12
- 'no-watch': boolean;
13
12
  'no-sync': boolean;
13
+ 'no-watch': boolean;
14
14
  }, {
15
15
  sync?: boolean | undefined;
16
16
  watch?: boolean | undefined;
17
- 'no-watch'?: boolean | undefined;
18
17
  'no-sync'?: boolean | undefined;
18
+ 'no-watch'?: boolean | undefined;
19
19
  }>;
20
20
  export type Args = z.infer<typeof Args>;
21
21
  export type DevTask_Context = Plugin_Context<Args>;
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.129.14',
4
+ version: '0.129.15',
5
5
  description: 'task runner and toolkit extending SvelteKit',
6
6
  motto: 'generate, run, optimize',
7
7
  glyph: '🌰',
@@ -56,8 +56,8 @@ export const package_json = {
56
56
  '@changesets/changelog-git': '^0.2.0',
57
57
  '@changesets/types': '^6.0.0',
58
58
  '@ryanatkn/eslint-config': '^0.4.0',
59
- '@ryanatkn/fuz': '^0.108.3',
60
- '@ryanatkn/moss': '^0.7.0',
59
+ '@ryanatkn/fuz': '^0.108.4',
60
+ '@ryanatkn/moss': '^0.7.1',
61
61
  '@sveltejs/adapter-static': '^3.0.2',
62
62
  '@sveltejs/kit': '^2.5.18',
63
63
  '@sveltejs/package': '^2.3.2',
@@ -66,11 +66,11 @@ export const package_json = {
66
66
  '@types/node': '^20.14.10',
67
67
  esbuild: '^0.21.5',
68
68
  eslint: '^9.6.0',
69
- 'eslint-plugin-svelte': '^2.41.0',
70
- svelte: '^5.0.0-next.175',
69
+ 'eslint-plugin-svelte': '^2.42.0',
70
+ svelte: '^5.0.0-next.182',
71
71
  'svelte-check': '^3.8.4',
72
72
  typescript: '^5.5.3',
73
- 'typescript-eslint': '^8.0.0-alpha.39',
73
+ 'typescript-eslint': '^8.0.0-alpha.41',
74
74
  uvu: '^0.5.6',
75
75
  },
76
76
  prettier: {
@@ -266,7 +266,7 @@ export const package_json = {
266
266
  };
267
267
  export const src_json = {
268
268
  name: '@ryanatkn/gro',
269
- version: '0.129.14',
269
+ version: '0.129.15',
270
270
  modules: {
271
271
  '.': {
272
272
  path: 'index.ts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.129.14",
3
+ "version": "0.129.15",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
5
  "motto": "generate, run, optimize",
6
6
  "glyph": "🌰",
@@ -69,8 +69,8 @@
69
69
  "@changesets/changelog-git": "^0.2.0",
70
70
  "@changesets/types": "^6.0.0",
71
71
  "@ryanatkn/eslint-config": "^0.4.0",
72
- "@ryanatkn/fuz": "^0.108.3",
73
- "@ryanatkn/moss": "^0.7.0",
72
+ "@ryanatkn/fuz": "^0.108.4",
73
+ "@ryanatkn/moss": "^0.7.1",
74
74
  "@sveltejs/adapter-static": "^3.0.2",
75
75
  "@sveltejs/kit": "^2.5.18",
76
76
  "@sveltejs/package": "^2.3.2",
@@ -79,11 +79,11 @@
79
79
  "@types/node": "^20.14.10",
80
80
  "esbuild": "^0.21.5",
81
81
  "eslint": "^9.6.0",
82
- "eslint-plugin-svelte": "^2.41.0",
83
- "svelte": "^5.0.0-next.175",
82
+ "eslint-plugin-svelte": "^2.42.0",
83
+ "svelte": "^5.0.0-next.182",
84
84
  "svelte-check": "^3.8.4",
85
85
  "typescript": "^5.5.3",
86
- "typescript-eslint": "^8.0.0-alpha.39",
86
+ "typescript-eslint": "^8.0.0-alpha.41",
87
87
  "uvu": "^0.5.6"
88
88
  },
89
89
  "prettier": {
@@ -20,8 +20,10 @@ export const Args = z
20
20
  'no-package_json': z.boolean({description: 'opt out of package.json check'}).default(false),
21
21
  lint: z.boolean({description: 'dual of no-lint'}).default(true),
22
22
  'no-lint': z.boolean({description: 'opt out of linting'}).default(false),
23
+ sync: z.boolean({description: 'dual of no-sync'}).default(true),
24
+ 'no-sync': z.boolean({description: 'opt out of syncing'}).default(false),
23
25
  workspace: z
24
- .boolean({description: 'ensure a clean git workspace, useful for CI'})
26
+ .boolean({description: 'ensure a clean git workspace, useful for CI, also implies --no-sync'})
25
27
  .default(false),
26
28
  })
27
29
  .strict();
@@ -31,15 +33,12 @@ export const task: Task<Args> = {
31
33
  summary: 'check that everything is ready to commit',
32
34
  Args,
33
35
  run: async ({args, invoke_task, log, config}) => {
34
- const {typecheck, test, gen, format, package_json, lint, workspace} = args;
36
+ const {typecheck, test, gen, format, package_json, lint, sync, workspace} = args;
35
37
 
36
- // When checking the workspace, which was added for CI,
37
- // don't sync, because the check will fail with misleading errors.
38
- // For example it would cause the gen check to be a false negative,
39
- // and then the workspace check would fail with the new files.
40
- const sync = !workspace;
41
- if (sync) {
42
- await invoke_task('sync');
38
+ // When checking the workspace, which was added for CI, never sync.
39
+ // Setup like `npm i` and `sveltekit-sync` should be done in the CI setup.
40
+ if (sync && !workspace) {
41
+ await invoke_task('sync', {gen: false}); // never generate because `gro gen --check` runs below
43
42
  }
44
43
 
45
44
  if (typecheck) {
@@ -5,7 +5,7 @@ import type {Src_Json} from './src_json.js';
5
5
 
6
6
  export const package_json = {
7
7
  name: '@ryanatkn/gro',
8
- version: '0.129.14',
8
+ version: '0.129.15',
9
9
  description: 'task runner and toolkit extending SvelteKit',
10
10
  motto: 'generate, run, optimize',
11
11
  glyph: '🌰',
@@ -61,8 +61,8 @@ export const package_json = {
61
61
  '@changesets/changelog-git': '^0.2.0',
62
62
  '@changesets/types': '^6.0.0',
63
63
  '@ryanatkn/eslint-config': '^0.4.0',
64
- '@ryanatkn/fuz': '^0.108.3',
65
- '@ryanatkn/moss': '^0.7.0',
64
+ '@ryanatkn/fuz': '^0.108.4',
65
+ '@ryanatkn/moss': '^0.7.1',
66
66
  '@sveltejs/adapter-static': '^3.0.2',
67
67
  '@sveltejs/kit': '^2.5.18',
68
68
  '@sveltejs/package': '^2.3.2',
@@ -71,11 +71,11 @@ export const package_json = {
71
71
  '@types/node': '^20.14.10',
72
72
  esbuild: '^0.21.5',
73
73
  eslint: '^9.6.0',
74
- 'eslint-plugin-svelte': '^2.41.0',
75
- svelte: '^5.0.0-next.175',
74
+ 'eslint-plugin-svelte': '^2.42.0',
75
+ svelte: '^5.0.0-next.182',
76
76
  'svelte-check': '^3.8.4',
77
77
  typescript: '^5.5.3',
78
- 'typescript-eslint': '^8.0.0-alpha.39',
78
+ 'typescript-eslint': '^8.0.0-alpha.41',
79
79
  uvu: '^0.5.6',
80
80
  },
81
81
  prettier: {
@@ -272,7 +272,7 @@ export const package_json = {
272
272
 
273
273
  export const src_json = {
274
274
  name: '@ryanatkn/gro',
275
- version: '0.129.14',
275
+ version: '0.129.15',
276
276
  modules: {
277
277
  '.': {
278
278
  path: 'index.ts',