chore: publish 2.0.0-alpha.0

This commit is contained in:
LongYinan 2021-09-23 01:44:36 +08:00
parent 2467b7139b
commit f9c01b40f7
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
4 changed files with 29 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@napi-rs/cli",
"version": "1.3.3",
"version": "2.0.0-alpha.0",
"description": "Cli tools for napi-rs",
"keywords": ["cli", "rust", "napi", "n-api", "neon"],
"author": "LongYinan <lynweklm@gmail.com>",

View file

@ -1,17 +1,22 @@
[package]
name = "napi-derive-backend"
version = "0.1.0"
description = "Codegen backend for napi procedural macro"
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]
type-def = ["regex", "once_cell"]
strict = []
type-def = ["regex", "once_cell"]
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = {version = "1.0", features = ["fold", "full"]}
convert_case = "0.4.0"
convert_case = "0.4"
proc-macro2 = "1"
quote = "1"
syn = {version = "1", features = ["fold", "full", "extra-traits"]}
[dependencies.regex]
optional = true

View file

@ -18,7 +18,7 @@ type-def = ["napi-derive-backend/type-def"]
[dependencies]
convert_case = "0.4"
napi-derive-backend = {path = "../backend"}
napi-derive-backend = {version = "1", path = "../backend"}
proc-macro2 = "1.0"
quote = "1.0"
syn = {version = "1.0", features = ["fold", "full", "extra-traits"]}

View file

@ -2,8 +2,21 @@ export function getWords(): Array<string>
export function getNums(): Array<number>
export function sumNums(nums: Array<number>): number
export function getCwd(callback: (arg0: string) => void): void
export enum Kind { 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 enum Kind {
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 mapOption(val: number | undefined): number | undefined
export function add(a: number, b: number): number