@caiquecamargo/vite-plugin-netlify-cms 0.0.6 → 0.0.7

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import type { Plugin } from "vite";
1
+ import { Plugin } from "vite";
2
2
  import { BooleanWidget, CodeWidget, ColorWidget, DateTimeWidget, FileCollection, FileWidget, FolderCollection, HiddenWidget, ImageWidget, ListWidget, MapWidget, NetlifyCMSConfig, NumberWidget, ObjectWidget, RelationWidget, SelectWidget, StringWidget, TextWidget } from "./types";
3
3
  export declare const defineConfig: (config: NetlifyCMSConfig) => NetlifyCMSConfig;
4
4
  export declare const defineFolderCollection: (collection: FolderCollection) => FolderCollection;
@@ -35,4 +35,5 @@ export type NetlifyCMSEntry = {
35
35
  config?: NetlifyCMSConfig;
36
36
  saveFolder?: string;
37
37
  };
38
+ export declare const createConfig: (root: string, entry?: NetlifyCMSEntry) => Promise<void>;
38
39
  export default function (entry?: NetlifyCMSEntry): Promise<Plugin>;
package/package.json CHANGED
@@ -4,7 +4,10 @@
4
4
  "@rollup/plugin-typescript": "^11.0.0",
5
5
  "@types/node": "^18.11.17",
6
6
  "@vitest/coverage-c8": "^0.26.3",
7
+ "acorn": "^8.8.1",
8
+ "config-file-ts": "^0.2.4",
7
9
  "happy-dom": "^8.1.3",
10
+ "nodemon": "^2.0.20",
8
11
  "ts-node": "^10.9.1",
9
12
  "tslib": "^2.4.1",
10
13
  "ttypescript": "^1.5.15",
@@ -14,11 +17,14 @@
14
17
  "vitest": "^0.26.2",
15
18
  "yaml": "^2.2.1"
16
19
  },
20
+ "peerDependencies": {
21
+ "vite": "^3.0.0 || ^4.0.0"
22
+ },
17
23
  "exports": {
18
24
  ".": {
19
25
  "default": "./dist/index.es.js",
20
26
  "import": "./dist/index.es.js",
21
- "require": "./dist/index.cjs.js",
27
+ "require": "./dist/index.umd.js",
22
28
  "types": "./dist/index.d.ts"
23
29
  }
24
30
  },
@@ -27,7 +33,7 @@
27
33
  ],
28
34
  "keywords": [],
29
35
  "license": "ISC",
30
- "main": "./dist/index.es.js",
36
+ "main": "./dist/index.umd.js",
31
37
  "module": "./dist/index.es.js",
32
38
  "name": "@caiquecamargo/vite-plugin-netlify-cms",
33
39
  "publishConfig": {
@@ -40,7 +46,7 @@
40
46
  },
41
47
  "scripts": {
42
48
  "build": "vite build",
43
- "dev": "vite --host",
49
+ "dev": "npx nodemon ./src/demo.ts",
44
50
  "package": "pnpm build",
45
51
  "prepublishOnly": "pnpm package",
46
52
  "pub": "pnpm publish",
@@ -51,5 +57,5 @@
51
57
  },
52
58
  "type": "module",
53
59
  "types": "./dist/index.d.ts",
54
- "version": "0.0.6"
60
+ "version": "0.0.7"
55
61
  }