@ryanatkn/gro 0.143.1 → 0.143.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.
@@ -1 +1 @@
1
- {"version":3,"file":"changeset.task.d.ts","sourceRoot":"../src/lib/","sources":["changeset.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAchD,eAAO,MAAM,IAAI;IAEf;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBK,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAkF3B,CAAC"}
1
+ {"version":3,"file":"changeset.task.d.ts","sourceRoot":"../src/lib/","sources":["changeset.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,OAAO,EAAa,KAAK,IAAI,EAAC,MAAM,WAAW,CAAC;AAchD,eAAO,MAAM,IAAI;IAEf;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBK,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA0F3B,CAAC"}
@@ -15,7 +15,10 @@ export const Args = z
15
15
  /**
16
16
  * The optional rest args get joined with a space to form the `message`.
17
17
  */
18
- _: z.array(z.string(), { description: 'the message for the changeset and commit' }).default([]),
18
+ _: z
19
+ .array(z.string(), { description: 'the message for the changeset and commit' })
20
+ .max(1)
21
+ .default([]),
19
22
  minor: z.boolean({ description: 'bump the minor version' }).default(false),
20
23
  major: z.boolean({ description: 'bump the major version' }).default(false),
21
24
  dir: z.string({ description: 'changeset dir' }).default(CHANGESET_DIR),
@@ -44,8 +47,7 @@ export const task = {
44
47
  summary: 'call changeset with gro patterns',
45
48
  Args,
46
49
  run: async (ctx) => {
47
- const { invoke_task, args: { _, minor, major, dir, access: access_arg, changelog, dep, origin, changeset_cli }, log, sveltekit_config, config, } = ctx;
48
- const message = _.join(' ');
50
+ const { invoke_task, args: { _: [message], minor, major, dir, access: access_arg, changelog, dep, origin, changeset_cli, }, log, sveltekit_config, config, } = ctx;
49
51
  if (!message && (minor || major))
50
52
  throw new Task_Error('cannot bump version without a message');
51
53
  if (minor && major)
@@ -1 +1 @@
1
- {"version":3,"file":"gro_plugin_gen.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_gen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAgB,WAAW,EAAC,MAAM,YAAY,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,uDAIxB,OAAO,KAAkB,MAiF3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,gBAChB,WAAW,aACb,CAAC,EAAE,EAAE,OAAO,KAAK,WAAW,GAAG,SAAS,WAC1C,WAAW,YACX,GAAG,CAAC,MAAM,CAAC,aACV,GAAG,CAAC,MAAM,CAAC,KACnB,GAAG,CAAC,MAAM,CAYZ,CAAC"}
1
+ {"version":3,"file":"gro_plugin_gen.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_gen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAgB,WAAW,EAAC,MAAM,YAAY,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,uDAIxB,OAAO,KAAkB,MAkF3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,gBAChB,WAAW,aACb,CAAC,EAAE,EAAE,OAAO,KAAK,WAAW,GAAG,SAAS,WAC1C,WAAW,YACX,GAAG,CAAC,MAAM,CAAC,aACV,GAAG,CAAC,MAAM,CAAC,KACnB,GAAG,CAAC,MAAM,CAYZ,CAAC"}
@@ -47,6 +47,8 @@ export const gro_plugin_gen = ({ input_paths = [paths.source], root_dirs = [path
47
47
  // When a file builds, check it and its tree of dependents
48
48
  // for any `.gen.` files that need to run.
49
49
  cleanup = await filer.watch((change, source_file) => {
50
+ if (source_file.external)
51
+ return;
50
52
  switch (change.type) {
51
53
  case 'add':
52
54
  case 'update': {
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.143.1',
4
+ version: '0.143.3',
5
5
  description: 'task runner and toolkit extending SvelteKit',
6
6
  motto: 'generate, run, optimize',
7
7
  glyph: '🌰',
@@ -56,7 +56,7 @@ 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.5.5',
59
- '@ryanatkn/fuz': '^0.129.5',
59
+ '@ryanatkn/fuz': '^0.130.1',
60
60
  '@ryanatkn/moss': '^0.18.2',
61
61
  '@sveltejs/adapter-static': '^3.0.6',
62
62
  '@sveltejs/kit': '^2.7.3',
@@ -261,7 +261,7 @@ export const package_json = {
261
261
  };
262
262
  export const src_json = {
263
263
  name: '@ryanatkn/gro',
264
- version: '0.143.1',
264
+ version: '0.143.3',
265
265
  modules: {
266
266
  '.': {
267
267
  path: 'index.ts',
@@ -92,9 +92,9 @@ export const task = {
92
92
  throw Error('changeset version failed: no commits were made: see the error above');
93
93
  }
94
94
  if (!preserve_changelog) {
95
- const token = load_from_env('GITHUB_TOKEN_SECRET');
95
+ const token = load_from_env('SECRET_GITHUB_API_TOKEN');
96
96
  if (!token) {
97
- log.warn('the env var GITHUB_TOKEN_SECRET was not found, so API calls with be unauthorized');
97
+ log.warn('the env var SECRET_GITHUB_API_TOKEN was not found, so API calls with be unauthorized');
98
98
  }
99
99
  await update_changelog(parsed_repo_url.owner, parsed_repo_url.repo, changelog, token, log);
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.143.1",
3
+ "version": "0.143.3",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
5
  "motto": "generate, run, optimize",
6
6
  "glyph": "🌰",
@@ -69,7 +69,7 @@
69
69
  "@changesets/changelog-git": "^0.2.0",
70
70
  "@changesets/types": "^6.0.0",
71
71
  "@ryanatkn/eslint-config": "^0.5.5",
72
- "@ryanatkn/fuz": "^0.129.5",
72
+ "@ryanatkn/fuz": "^0.130.1",
73
73
  "@ryanatkn/moss": "^0.18.2",
74
74
  "@sveltejs/adapter-static": "^3.0.6",
75
75
  "@sveltejs/kit": "^2.7.3",
@@ -25,7 +25,10 @@ export const Args = z
25
25
  /**
26
26
  * The optional rest args get joined with a space to form the `message`.
27
27
  */
28
- _: z.array(z.string(), {description: 'the message for the changeset and commit'}).default([]),
28
+ _: z
29
+ .array(z.string(), {description: 'the message for the changeset and commit'})
30
+ .max(1)
31
+ .default([]),
29
32
  minor: z.boolean({description: 'bump the minor version'}).default(false),
30
33
  major: z.boolean({description: 'bump the major version'}).default(false),
31
34
  dir: z.string({description: 'changeset dir'}).default(CHANGESET_DIR),
@@ -60,14 +63,22 @@ export const task: Task<Args> = {
60
63
  run: async (ctx): Promise<void> => {
61
64
  const {
62
65
  invoke_task,
63
- args: {_, minor, major, dir, access: access_arg, changelog, dep, origin, changeset_cli},
66
+ args: {
67
+ _: [message],
68
+ minor,
69
+ major,
70
+ dir,
71
+ access: access_arg,
72
+ changelog,
73
+ dep,
74
+ origin,
75
+ changeset_cli,
76
+ },
64
77
  log,
65
78
  sveltekit_config,
66
79
  config,
67
80
  } = ctx;
68
81
 
69
- const message = _.join(' ');
70
-
71
82
  if (!message && (minor || major)) throw new Task_Error('cannot bump version without a message');
72
83
  if (minor && major) throw new Task_Error('cannot bump both minor and major');
73
84
 
@@ -75,6 +75,7 @@ export const gro_plugin_gen = ({
75
75
  // When a file builds, check it and its tree of dependents
76
76
  // for any `.gen.` files that need to run.
77
77
  cleanup = await filer.watch((change, source_file) => {
78
+ if (source_file.external) return;
78
79
  switch (change.type) {
79
80
  case 'add':
80
81
  case 'update': {
@@ -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.143.1',
8
+ version: '0.143.3',
9
9
  description: 'task runner and toolkit extending SvelteKit',
10
10
  motto: 'generate, run, optimize',
11
11
  glyph: '🌰',
@@ -61,7 +61,7 @@ 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.5.5',
64
- '@ryanatkn/fuz': '^0.129.5',
64
+ '@ryanatkn/fuz': '^0.130.1',
65
65
  '@ryanatkn/moss': '^0.18.2',
66
66
  '@sveltejs/adapter-static': '^3.0.6',
67
67
  '@sveltejs/kit': '^2.7.3',
@@ -267,7 +267,7 @@ export const package_json = {
267
267
 
268
268
  export const src_json = {
269
269
  name: '@ryanatkn/gro',
270
- version: '0.143.1',
270
+ version: '0.143.3',
271
271
  modules: {
272
272
  '.': {
273
273
  path: 'index.ts',
@@ -130,10 +130,10 @@ export const task: Task<Args> = {
130
130
  }
131
131
 
132
132
  if (!preserve_changelog) {
133
- const token = load_from_env('GITHUB_TOKEN_SECRET');
133
+ const token = load_from_env('SECRET_GITHUB_API_TOKEN');
134
134
  if (!token) {
135
135
  log.warn(
136
- 'the env var GITHUB_TOKEN_SECRET was not found, so API calls with be unauthorized',
136
+ 'the env var SECRET_GITHUB_API_TOKEN was not found, so API calls with be unauthorized',
137
137
  );
138
138
  }
139
139
  await update_changelog(parsed_repo_url.owner, parsed_repo_url.repo, changelog, token, log);