@trpc/upgrade 0.0.0-alpha.10 → 0.0.0-alpha.12

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/cli.cjs CHANGED
@@ -10,10 +10,9 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
 
11
11
  var path__default = /*#__PURE__*/_interopDefault(path);
12
12
 
13
- var version = "0.0.0-alpha.10";
13
+ var version = "0.0.0-alpha.11";
14
14
 
15
15
  const MakeCommand = (command, ...args)=>{
16
- console.log('MakeCommand', command, args, process.cwd());
17
16
  return platform.Command.workingDirectory(process.cwd())(platform.Command.make(command, ...args));
18
17
  };
19
18
  const assertCleanGitTree = platform.Command.string(MakeCommand('git', 'status')).pipe().pipe(effect.Effect.filterOrFail(effect.String.includes('nothing to commit'), ()=>'Git tree is not clean, please commit your changes and try again, or run with `--force`'));
@@ -28,7 +27,7 @@ const uninstallPackage = (packageName)=>{
28
27
  return platform.Command.streamLines(MakeCommand(packageManager, uninstallCmd, packageName)).pipe(effect.Stream.mapEffect(effect.Console.log), effect.Stream.runDrain);
29
28
  };
30
29
  const filterIgnored = (files)=>effect.Effect.gen(function*() {
31
- const ignores = yield* platform.Command.string(MakeCommand('git', 'check-ignore', '**/*')).pipe(effect.Effect.tap(effect.Effect.log), effect.Effect.map((_)=>_.split('\n')));
30
+ const ignores = yield* platform.Command.string(MakeCommand('git check-ignore **/*')).pipe(effect.Effect.tap((_)=>effect.Effect.logDebug('Ignored files output:', _)), effect.Effect.map((_)=>_.split('\n')));
32
31
  yield* effect.Effect.logDebug('All files in program:', files.map((_)=>_.fileName));
33
32
  yield* effect.Effect.logDebug('Ignored files:', ignores);
34
33
  // Ignore "common files"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/upgrade",
3
- "version": "0.0.0-alpha.10",
3
+ "version": "0.0.0-alpha.12",
4
4
  "description": "Upgrade scripts for tRPC",
5
5
  "author": "juliusmarminge",
6
6
  "license": "MIT",
package/src/bin/cli.ts CHANGED
@@ -27,7 +27,6 @@ import {
27
27
  import { version } from '../../package.json';
28
28
 
29
29
  const MakeCommand = (command: string, ...args: string[]) => {
30
- console.log('MakeCommand', command, args, process.cwd());
31
30
  return Command.workingDirectory(process.cwd())(
32
31
  Command.make(command, ...args),
33
32
  );
@@ -68,9 +67,9 @@ const uninstallPackage = (packageName: string) => {
68
67
  const filterIgnored = (files: readonly SourceFile[]) =>
69
68
  Effect.gen(function* () {
70
69
  const ignores = yield* Command.string(
71
- MakeCommand('git', 'check-ignore', '**/*'),
70
+ MakeCommand('git check-ignore **/*'),
72
71
  ).pipe(
73
- Effect.tap(Effect.log),
72
+ Effect.tap((_) => Effect.logDebug('Ignored files output:', _)),
74
73
  Effect.map((_) => _.split('\n')),
75
74
  );
76
75