@tramvai/tools-migrate 0.5.110 → 0.5.114

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.
Files changed (2) hide show
  1. package/lib/types.d.ts +7 -2
  2. package/package.json +1 -5
package/lib/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type { Transform, FileInfo } from 'jscodeshift';
2
2
  import type { Options as RecastOptions } from 'recast';
3
- import type { Config } from '@tramvai/cli/lib/typings/projectType';
4
3
  declare module 'jscodeshift' {
5
4
  interface Options {
6
5
  printOptions?: RecastOptions;
@@ -9,7 +8,13 @@ declare module 'jscodeshift' {
9
8
  export declare type Transformer = Transform;
10
9
  export declare type PathTransformer = (file: FileInfo) => string;
11
10
  export declare type PackageJSON = Record<string, any>;
12
- export declare type TramvaiJSON = Config;
11
+ export declare type TramvaiJSON = {
12
+ projectsConfig?: any;
13
+ $schema?: string;
14
+ projects: {
15
+ [name: string]: Record<string, any>;
16
+ };
17
+ };
13
18
  export interface Api {
14
19
  packageJSON: {
15
20
  source: PackageJSON;
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@tramvai/tools-migrate",
3
- "version": "0.5.110",
3
+ "version": "0.5.114",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
- "scripts": {
7
- "postinstall": "node -e \"require('./bin/migrate.js')\""
8
- },
9
6
  "bin": {
10
7
  "tramvai-migrate": "bin/migrate.js"
11
8
  },
@@ -26,7 +23,6 @@
26
23
  "tslib": "^2.0.3"
27
24
  },
28
25
  "devDependencies": {
29
- "@tramvai/cli": "1.10.3",
30
26
  "@types/env-ci": "^3.1.0",
31
27
  "@types/fs-extra": "^8.1.0",
32
28
  "@types/jscodeshift": "^0.7.0"