@tinacms/cli 0.60.23 → 0.60.26

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.
@@ -12,10 +12,12 @@ limitations under the License.
12
12
  */
13
13
  interface MediaArgs {
14
14
  searchPath: string;
15
+ cursor?: string;
16
+ limit?: string;
15
17
  }
16
18
  interface File {
17
19
  src: string;
18
- fileName: string;
20
+ filename: string;
19
21
  size: number;
20
22
  }
21
23
  interface ListMediaRes {
@@ -26,7 +28,7 @@ interface ListMediaRes {
26
28
  }
27
29
  export interface PathConfig {
28
30
  publicFolder: string;
29
- syncFolder: string;
31
+ mediaRoot: string;
30
32
  }
31
33
  declare type SuccessRecord = {
32
34
  ok: true;
@@ -36,8 +38,8 @@ declare type SuccessRecord = {
36
38
  };
37
39
  export declare class MediaModel {
38
40
  readonly publicFolder: string;
39
- readonly syncFolder: string;
40
- constructor({ publicFolder, syncFolder }: PathConfig);
41
+ readonly mediaRoot: string;
42
+ constructor({ publicFolder, mediaRoot }: PathConfig);
41
43
  listMedia(args: MediaArgs): Promise<ListMediaRes>;
42
44
  deleteMedia(args: MediaArgs): Promise<SuccessRecord>;
43
45
  }
@@ -10,5 +10,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  See the License for the specific language governing permissions and
11
11
  limitations under the License.
12
12
  */
13
+ import { Router } from 'express';
13
14
  import { PathConfig } from '../models/media';
14
- export declare const createMediaRouter: (config: PathConfig) => import("express-serve-static-core").Router;
15
+ export declare const createMediaRouter: (config: PathConfig) => Router;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.60.23",
3
+ "version": "0.60.26",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "devDependencies": {
24
- "@tinacms/scripts": "0.50.8",
24
+ "@tinacms/scripts": "0.50.9",
25
25
  "@types/clear": "0.1.0",
26
26
  "@types/cors": "2.8.5",
27
27
  "@types/express": "^4.17.7",
@@ -40,14 +40,7 @@
40
40
  "@types/prompts": "^2.0.13",
41
41
  "@types/yup": "^0.29.11",
42
42
  "jest": "^27.0.6",
43
- "typescript": "^4.3.5"
44
- },
45
- "scripts": {
46
- "build": "echo \"Run `yarn build` from the root of the repository instead\"",
47
- "test": "jest --passWithNoTests",
48
- "types": "yarn tsc",
49
- "test-watch": "jest --passWithNoTests --watch",
50
- "generate:schema": "yarn node scripts/generateSchema.js"
43
+ "typescript": "4.3.5"
51
44
  },
52
45
  "dependencies": {
53
46
  "@graphql-codegen/core": "^2.1.0",
@@ -58,11 +51,10 @@
58
51
  "@graphql-codegen/visitor-plugin-common": "^2.4.0",
59
52
  "@graphql-tools/graphql-file-loader": "^7.2.0",
60
53
  "@graphql-tools/load": "^7.3.2",
61
- "@tinacms/datalayer": "0.1.1",
62
- "@tinacms/graphql": "0.60.8",
54
+ "@tinacms/datalayer": "0.2.0",
55
+ "@tinacms/graphql": "0.61.1",
63
56
  "@tinacms/metrics": "0.0.3",
64
- "@tinacms/schema-tools": "0.0.5",
65
- "@yarnpkg/esbuild-plugin-pnp": "^2.0.1-rc.3",
57
+ "@tinacms/schema-tools": "0.0.7",
66
58
  "add": "^2.0.6",
67
59
  "ajv": "^6.12.3",
68
60
  "altair-express-middleware": "4.0.6",
@@ -80,6 +72,7 @@
80
72
  "fast-glob": "^3.2.4",
81
73
  "fs-extra": "^9.0.1",
82
74
  "graphql": "^15.1.0",
75
+ "ini": "^3.0.0",
83
76
  "js-yaml": "^4.0.0",
84
77
  "lodash": "^4.17.19",
85
78
  "lodash.get": "^4.4.2",
@@ -97,5 +90,12 @@
97
90
  "repository": {
98
91
  "url": "https://github.com/tinacms/tinacms.git",
99
92
  "directory": "packages/@tinacms/cli"
93
+ },
94
+ "scripts": {
95
+ "build": "tinacms-scripts build",
96
+ "test": "jest --passWithNoTests",
97
+ "types": "pnpm tsc",
98
+ "test-watch": "jest --passWithNoTests --watch",
99
+ "generate:schema": "yarn node scripts/generateSchema.js"
100
100
  }
101
101
  }