amrbashir 9 月之前
父节点
当前提交
b01893d07d

+ 1 - 1
packages/cli/.gitignore

@@ -1,2 +1,2 @@
 # debug builds of NAPI
-*.node
+/*.node

+ 0 - 10
packages/cli/.npmignore

@@ -1,10 +0,0 @@
-target
-Cargo.lock
-.cargo
-.github
-npm
-test
-.eslintrc
-.prettierignore
-rustfmt.toml
-*.node

+ 24 - 0
packages/cli/jsr.json

@@ -0,0 +1,24 @@
+{
+  "$schema": "https://jsr.io/schema/config-file.v1.json",
+  "name": "@tauri-apps/cli",
+  "version": "2.0.3-alpha.4",
+  "license": "Apache-2.0 OR MIT",
+  "exports": {
+    ".": "./index.js",
+    "./tauri": "./tauri.js",
+    "./main": "./main.js"
+  },
+  "publish": {
+    "include": [
+      "CHANGELOG.md",
+      "README.md",
+      "index.js",
+      "index.d.ts",
+      "main.js",
+      "main.d.ts",
+      "tauri.js",
+      "LICENSE*",
+      "package.json"
+    ]
+  }
+}

+ 1 - 0
packages/cli/npm/win32-x64-msvc/index.js

@@ -0,0 +1 @@
+module.exports = require('./cli.win32-x64-msvc.node')

+ 10 - 0
packages/cli/npm/win32-x64-msvc/jsr.json

@@ -0,0 +1,10 @@
+{
+  "$schema": "https://jsr.io/schema/config-file.v1.json",
+  "name": "@tauri-apps/cli-win32-x64-msvc",
+  "version": "2.0.3-alpha.4",
+  "license": "Apache-2.0 OR MIT",
+  "exports": "./index.js",
+  "publish": {
+    "include": ["cli.win32-x64-msvc.node", "package.json", "README.md"]
+  }
+}

+ 10 - 0
packages/cli/package.json

@@ -46,6 +46,16 @@
   "engines": {
     "node": ">= 10"
   },
+  "files": [
+    "CHANGELOG.md",
+    "README.md",
+    "index.js",
+    "index.d.ts",
+    "main.js",
+    "main.d.ts",
+    "tauri.js",
+    "LICENSE*"
+  ],
   "bin": {
     "tauri": "./tauri.js"
   },