chore: publish 2.0.0-alpha.0
This commit is contained in:
parent
2467b7139b
commit
f9c01b40f7
4 changed files with 29 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@napi-rs/cli",
|
"name": "@napi-rs/cli",
|
||||||
"version": "1.3.3",
|
"version": "2.0.0-alpha.0",
|
||||||
"description": "Cli tools for napi-rs",
|
"description": "Cli tools for napi-rs",
|
||||||
"keywords": ["cli", "rust", "napi", "n-api", "neon"],
|
"keywords": ["cli", "rust", "napi", "n-api", "neon"],
|
||||||
"author": "LongYinan <lynweklm@gmail.com>",
|
"author": "LongYinan <lynweklm@gmail.com>",
|
||||||
|
|
|
@ -1,17 +1,22 @@
|
||||||
[package]
|
[package]
|
||||||
name = "napi-derive-backend"
|
description = "Codegen backend for napi procedural macro"
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
homepage = "https://napi.rs"
|
||||||
|
license = "MIT"
|
||||||
|
name = "napi-derive-backend"
|
||||||
|
readme = "README.md"
|
||||||
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
|
version = "1.0.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
type-def = ["regex", "once_cell"]
|
|
||||||
strict = []
|
strict = []
|
||||||
|
type-def = ["regex", "once_cell"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro2 = "1.0"
|
convert_case = "0.4"
|
||||||
quote = "1.0"
|
proc-macro2 = "1"
|
||||||
syn = {version = "1.0", features = ["fold", "full"]}
|
quote = "1"
|
||||||
convert_case = "0.4.0"
|
syn = {version = "1", features = ["fold", "full", "extra-traits"]}
|
||||||
|
|
||||||
[dependencies.regex]
|
[dependencies.regex]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
@ -18,7 +18,7 @@ type-def = ["napi-derive-backend/type-def"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
convert_case = "0.4"
|
convert_case = "0.4"
|
||||||
napi-derive-backend = {path = "../backend"}
|
napi-derive-backend = {version = "1", path = "../backend"}
|
||||||
proc-macro2 = "1.0"
|
proc-macro2 = "1.0"
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
syn = {version = "1.0", features = ["fold", "full", "extra-traits"]}
|
syn = {version = "1.0", features = ["fold", "full", "extra-traits"]}
|
||||||
|
|
17
examples/napi/type.d.ts
vendored
17
examples/napi/type.d.ts
vendored
|
@ -2,8 +2,21 @@ export function getWords(): Array<string>
|
||||||
export function getNums(): Array<number>
|
export function getNums(): Array<number>
|
||||||
export function sumNums(nums: Array<number>): number
|
export function sumNums(nums: Array<number>): number
|
||||||
export function getCwd(callback: (arg0: string) => void): void
|
export function getCwd(callback: (arg0: string) => void): void
|
||||||
export enum Kind { Dog = 0, Cat = 1, Duck = 2 }
|
export enum Kind {
|
||||||
export enum CustomNumEnum { One = 1, Two = 2, Three = 3, Four = 4, Six = 6, Eight = 8, Nine = 9, Ten = 10 }
|
Dog = 0,
|
||||||
|
Cat = 1,
|
||||||
|
Duck = 2,
|
||||||
|
}
|
||||||
|
export enum CustomNumEnum {
|
||||||
|
One = 1,
|
||||||
|
Two = 2,
|
||||||
|
Three = 3,
|
||||||
|
Four = 4,
|
||||||
|
Six = 6,
|
||||||
|
Eight = 8,
|
||||||
|
Nine = 9,
|
||||||
|
Ten = 10,
|
||||||
|
}
|
||||||
export function enumToI32(e: CustomNumEnum): number
|
export function enumToI32(e: CustomNumEnum): number
|
||||||
export function mapOption(val: number | undefined): number | undefined
|
export function mapOption(val: number | undefined): number | undefined
|
||||||
export function add(a: number, b: number): number
|
export function add(a: number, b: number): number
|
||||||
|
|
Loading…
Reference in a new issue