@farmfe/plugin-virtual 0.0.5 → 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.
package/package.json CHANGED
@@ -1,11 +1,25 @@
1
1
  {
2
2
  "name": "@farmfe/plugin-virtual",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "private": false,
5
5
  "main": "scripts/index.js",
6
6
  "types": "scripts/index.d.ts",
7
7
  "type": "module",
8
8
  "license": "MIT",
9
+ "homepage": "https://github.com/farm-fe/plugins",
10
+ "author": "maidang1 <maidang@felixwliu.cn>",
11
+ "bugs": {
12
+ "url": "https://github.com/farm-fe/plugins/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/farm-fe/plugins.git"
17
+ },
18
+ "keywords": [
19
+ "Rust",
20
+ "virtual",
21
+ "farmfe"
22
+ ],
9
23
  "napi": {
10
24
  "name": "farm-plugin-virtual",
11
25
  "triples": {
@@ -21,9 +35,9 @@
21
35
  },
22
36
  "exports": {
23
37
  ".": {
24
- "import": "./scripts/index.js",
25
- "require": "./scripts/index.js",
26
- "types": "./scripts/index.d.ts"
38
+ "import": "./scripts/func.js",
39
+ "types": "./scripts/index.d.ts",
40
+ "default": "./scripts/index.js"
27
41
  },
28
42
  "./package.json": "./package.json"
29
43
  },
@@ -31,15 +45,15 @@
31
45
  "scripts"
32
46
  ],
33
47
  "optionalDependencies": {
34
- "@farmfe/plugin-virtual-darwin-arm64": "0.0.5",
35
- "@farmfe/plugin-virtual-darwin-x64": "0.0.5",
36
- "@farmfe/plugin-virtual-linux-arm64-gnu": "0.0.5",
37
- "@farmfe/plugin-virtual-linux-arm64-musl": "0.0.5",
38
- "@farmfe/plugin-virtual-linux-x64-gnu": "0.0.5",
39
- "@farmfe/plugin-virtual-linux-x64-musl": "0.0.5",
40
- "@farmfe/plugin-virtual-win32-arm64-msvc": "0.0.5",
41
- "@farmfe/plugin-virtual-win32-ia32-msvc": "0.0.5",
42
- "@farmfe/plugin-virtual-win32-x64-msvc": "0.0.5"
48
+ "@farmfe/plugin-virtual-darwin-arm64": "0.0.7",
49
+ "@farmfe/plugin-virtual-darwin-x64": "0.0.7",
50
+ "@farmfe/plugin-virtual-linux-arm64-gnu": "0.0.7",
51
+ "@farmfe/plugin-virtual-linux-arm64-musl": "0.0.7",
52
+ "@farmfe/plugin-virtual-linux-x64-gnu": "0.0.7",
53
+ "@farmfe/plugin-virtual-linux-x64-musl": "0.0.7",
54
+ "@farmfe/plugin-virtual-win32-arm64-msvc": "0.0.7",
55
+ "@farmfe/plugin-virtual-win32-ia32-msvc": "0.0.7",
56
+ "@farmfe/plugin-virtual-win32-x64-msvc": "0.0.7"
43
57
  },
44
58
  "scripts": {
45
59
  "build": "farm-plugin-tools build --platform --cargo-name farmfe_plugin_virtual -p farmfe_plugin_virtual --release"
@@ -0,0 +1,3 @@
1
+ import binPath from "./index.js";
2
+
3
+ export default (options)=>[binPath,options];
@@ -1,2 +1,3 @@
1
- const binPath: string;
1
+ import type { IPluginOptions } from '../options.d';
2
+ declare const binPath: (options?: IPluginOptions) => [string, IPluginOptions];
2
3
  export default binPath;