@trpc/upgrade 0.0.0-alpha.13 → 0.0.0-alpha.14

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
@@ -1,16 +1,11 @@
1
1
  #!/usr/bin/env node
2
- var path = require('path');
3
2
  var cli$1 = require('@effect/cli');
4
3
  var platform = require('@effect/platform');
5
4
  var platformNode = require('@effect/platform-node');
6
5
  var effect = require('effect');
7
6
  var typescript = require('typescript');
8
7
 
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
-
11
- var path__default = /*#__PURE__*/_interopDefault(path);
12
-
13
- var version = "0.0.0-alpha.13";
8
+ var version = "0.0.0-alpha.14";
14
9
 
15
10
  const MakeCommand = (command, ...args)=>{
16
11
  return platform.Command.make(command, ...args).pipe(platform.Command.workingDirectory(process.cwd()), platform.Command.runInShell(true));
@@ -31,7 +26,7 @@ const filterIgnored = (files)=>effect.Effect.gen(function*() {
31
26
  yield* effect.Effect.logDebug('All files in program:', files.map((_)=>_.fileName));
32
27
  yield* effect.Effect.logDebug('Ignored files:', ignores);
33
28
  // Ignore "common files"
34
- const filteredSourcePaths = files.filter((source)=>source.fileName.startsWith(path__default.default.resolve()) && // only look ahead of current directory
29
+ const filteredSourcePaths = files.filter((source)=>source.fileName.startsWith(process.cwd()) && // only look ahead of current directory
35
30
  !source.fileName.includes('/trpc/packages/') && // relative paths when running codemod locally
36
31
  !ignores.includes(source.fileName)).map((source)=>source.fileName);
37
32
  yield* effect.Effect.logDebug('Filtered files:', filteredSourcePaths);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/upgrade",
3
- "version": "0.0.0-alpha.13",
3
+ "version": "0.0.0-alpha.14",
4
4
  "description": "Upgrade scripts for tRPC",
5
5
  "author": "juliusmarminge",
6
6
  "license": "MIT",
package/src/bin/cli.ts CHANGED
@@ -84,7 +84,7 @@ const filterIgnored = (files: readonly SourceFile[]) =>
84
84
  const filteredSourcePaths = files
85
85
  .filter(
86
86
  (source) =>
87
- source.fileName.startsWith(path.resolve()) && // only look ahead of current directory
87
+ source.fileName.startsWith(process.cwd()) && // only look ahead of current directory
88
88
  !source.fileName.includes('/trpc/packages/') && // relative paths when running codemod locally
89
89
  !ignores.includes(source.fileName), // ignored files
90
90
  )