@shuvi/runtime 1.0.0-rc.0

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @shuvi/runtime-types
2
+
3
+ This packages exports serveral types which could be extended by plugins.
package/esm/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { HookMap } from '@shuvi/hook';
2
+ export interface CustomAppContext {
3
+ }
4
+ export interface CustomCorePluginHooks extends HookMap {
5
+ }
6
+ export interface CustomServerPluginHooks extends HookMap {
7
+ }
8
+ export interface CustomRuntimePluginHooks extends HookMap {
9
+ }
package/esm/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { HookMap } from '@shuvi/hook';
2
+ export interface CustomAppContext {
3
+ }
4
+ export interface CustomCorePluginHooks extends HookMap {
5
+ }
6
+ export interface CustomServerPluginHooks extends HookMap {
7
+ }
8
+ export interface CustomRuntimePluginHooks extends HookMap {
9
+ }
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@shuvi/runtime",
3
+ "version": "1.0.0-rc.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/shuvijs/shuvi.git",
7
+ "directory": "packages/plugins"
8
+ },
9
+ "author": "liximomo",
10
+ "license": "MIT",
11
+ "files": [
12
+ "lib",
13
+ "esm"
14
+ ],
15
+ "sideEffects": false,
16
+ "main": "lib/index.js",
17
+ "module": "esm/index.js",
18
+ "types": "lib/index.d.ts",
19
+ "dependencies": {
20
+ "@shuvi/hook": "1.0.0-rc.0"
21
+ },
22
+ "engines": {
23
+ "node": ">= 12.0.0"
24
+ },
25
+ "scripts": {
26
+ "dev": "run-p watch:*",
27
+ "watch:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm -w",
28
+ "watch:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib -w",
29
+ "prebuild": "rimraf lib esm",
30
+ "build": "run-p build:*",
31
+ "build:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm",
32
+ "build:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib"
33
+ }
34
+ }