@vnejs/shared 0.0.1 → 0.0.2

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 (3) hide show
  1. package/index.js +4 -2
  2. package/module.d.ts +6 -0
  3. package/package.json +6 -2
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
- export const VNE_SETTINGS = {};
2
- export const VNE_EVENTS = {};
3
1
  export const VNE_CONST = {};
2
+ export const VNE_EVENTS = {};
3
+ export const VNE_SETTINGS = {};
4
+
4
5
  export const VNE_MODULES = [];
5
6
  export const VNE_MODULE_EXTENSIONS = {};
6
7
 
@@ -12,6 +13,7 @@ export const regPlugin = (namespace = "", { constants = {}, events = {}, setting
12
13
  VNE_CONST[namespace] = constants;
13
14
  VNE_EVENTS[namespace] = events;
14
15
  VNE_SETTINGS[namespace] = settings;
16
+
15
17
  modules.forEach(regModule);
16
18
  };
17
19
 
package/module.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface VNE_CONST {}
2
+ export interface VNE_EVENTS {}
3
+ export interface VNE_SETTINGS {}
4
+ export interface VNE_MODULE_EXTENSIONS {}
5
+
6
+ export type VNE_MODULES = any[];
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@vnejs/shared",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "index.js",
5
+ "types": "module.d.ts",
5
6
  "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "publish:major": "npm version major && npm publish --access public --legacy-peer-deps",
9
+ "publish:minor": "npm version minor && npm publish --access public --legacy-peer-deps",
10
+ "publish:patch": "npm version patch && npm publish --access public --legacy-peer-deps"
7
11
  },
8
12
  "author": "",
9
13
  "license": "ISC",