@napi-rs/cli 3.0.0-alpha.9 → 3.0.0-alpha.91
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/cli.mjs +1 -1
- package/dist/api/__tests__/new.spec.d.ts +1 -0
- package/dist/api/build.d.ts +1 -1
- package/dist/api/templates/ci-template.d.ts +3 -1
- package/dist/api/templates/ci.yml.d.ts +3 -1
- package/dist/api/templates/js-binding.d.ts +1 -0
- package/dist/api/templates/load-wasi-template.d.ts +2 -0
- package/dist/api/templates/package.json.d.ts +9 -2
- package/dist/api/templates/wasi-worker-template.d.ts +2 -0
- package/dist/cli.js +3867 -15
- package/dist/def/artifacts.d.ts +21 -1
- package/dist/def/build.d.ts +149 -4
- package/dist/def/create-npm-dirs.d.ts +10 -0
- package/dist/def/new.d.ts +25 -7
- package/dist/def/pre-publish.d.ts +12 -2
- package/dist/def/rename.d.ts +16 -6
- package/dist/def/universalize.d.ts +10 -0
- package/dist/def/version.d.ts +10 -0
- package/dist/index.cjs +9946 -15669
- package/dist/index.js +3618 -32
- package/dist/utils/__tests__/config.spec.d.ts +1 -0
- package/dist/utils/config.d.ts +48 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/metadata.d.ts +13 -1
- package/dist/utils/misc.d.ts +3 -3
- package/dist/utils/read-config.d.ts +7 -0
- package/dist/utils/target.d.ts +7 -5
- package/dist/utils/typegen.d.ts +1 -1
- package/dist/utils/version.d.ts +2 -1
- package/package.json +38 -34
- package/src/api/__tests__/new.spec.ts +429 -0
- package/src/api/artifacts.ts +81 -9
- package/src/api/build.ts +498 -149
- package/src/api/create-npm-dirs.ts +57 -9
- package/src/api/new.ts +389 -122
- package/src/api/pre-publish.ts +13 -7
- package/src/api/rename.ts +103 -17
- package/src/api/templates/cargo.toml.ts +1 -0
- package/src/api/templates/ci-template.ts +150 -125
- package/src/api/templates/ci.yml.ts +27 -6
- package/src/api/templates/js-binding.ts +148 -220
- package/src/api/templates/load-wasi-template.ts +182 -0
- package/src/api/templates/package.json.ts +47 -5
- package/src/api/templates/wasi-worker-template.ts +122 -0
- package/src/api/universalize.ts +13 -8
- package/src/api/version.ts +5 -2
- package/src/commands/artifacts.ts +2 -2
- package/src/commands/build.ts +1 -1
- package/src/commands/new.ts +46 -45
- package/src/def/artifacts.ts +22 -3
- package/src/def/build.ts +55 -8
- package/src/def/create-npm-dirs.ts +9 -0
- package/src/def/new.ts +28 -3
- package/src/def/pre-publish.ts +12 -3
- package/src/def/rename.ts +11 -2
- package/src/def/universalize.ts +9 -0
- package/src/def/version.ts +9 -0
- package/src/utils/__tests__/__fixtures__/napi_type_def +130 -130
- package/src/utils/__tests__/__snapshots__/config.spec.ts.md +97 -0
- package/src/utils/__tests__/__snapshots__/config.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.md +28 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.md +316 -332
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/version.spec.ts.md +8 -7
- package/src/utils/__tests__/__snapshots__/version.spec.ts.snap +0 -0
- package/src/utils/__tests__/config.spec.ts +81 -0
- package/src/utils/cargo.ts +2 -2
- package/src/utils/config.ts +110 -9
- package/src/utils/index.ts +1 -1
- package/src/utils/log.ts +1 -1
- package/src/utils/metadata.ts +52 -14
- package/src/utils/misc.ts +21 -12
- package/src/utils/read-config.ts +20 -0
- package/src/utils/target.ts +22 -4
- package/src/utils/typegen.ts +87 -52
- package/src/utils/version.ts +10 -8
- package/dist/api/artifacts.js +0 -53
- package/dist/api/artifacts.js.map +0 -1
- package/dist/api/build.js +0 -498
- package/dist/api/build.js.map +0 -1
- package/dist/api/create-npm-dirs.js +0 -64
- package/dist/api/create-npm-dirs.js.map +0 -1
- package/dist/api/load-wasi-template.d.ts +0 -1
- package/dist/api/load-wasi-template.js +0 -64
- package/dist/api/load-wasi-template.js.map +0 -1
- package/dist/api/new.js +0 -155
- package/dist/api/new.js.map +0 -1
- package/dist/api/pre-publish.js +0 -158
- package/dist/api/pre-publish.js.map +0 -1
- package/dist/api/rename.js +0 -29
- package/dist/api/rename.js.map +0 -1
- package/dist/api/templates/.gitignore.js +0 -200
- package/dist/api/templates/.gitignore.js.map +0 -1
- package/dist/api/templates/.npmignore.js +0 -15
- package/dist/api/templates/.npmignore.js.map +0 -1
- package/dist/api/templates/build.rs.js +0 -5
- package/dist/api/templates/build.rs.js.map +0 -1
- package/dist/api/templates/cargo.toml.js +0 -26
- package/dist/api/templates/cargo.toml.js.map +0 -1
- package/dist/api/templates/ci-template.js +0 -578
- package/dist/api/templates/ci-template.js.map +0 -1
- package/dist/api/templates/ci.yml.js +0 -99
- package/dist/api/templates/ci.yml.js.map +0 -1
- package/dist/api/templates/index.js +0 -9
- package/dist/api/templates/index.js.map +0 -1
- package/dist/api/templates/js-binding.js +0 -293
- package/dist/api/templates/js-binding.js.map +0 -1
- package/dist/api/templates/lib.rs.js +0 -8
- package/dist/api/templates/lib.rs.js.map +0 -1
- package/dist/api/templates/package.json.js +0 -32
- package/dist/api/templates/package.json.js.map +0 -1
- package/dist/api/universalize.js +0 -39
- package/dist/api/universalize.js.map +0 -1
- package/dist/api/version.js +0 -17
- package/dist/api/version.js.map +0 -1
- package/dist/api/wasi-worker-template.d.ts +0 -1
- package/dist/api/wasi-worker-template.js +0 -53
- package/dist/api/wasi-worker-template.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/artifacts.js +0 -20
- package/dist/commands/artifacts.js.map +0 -1
- package/dist/commands/build.js +0 -35
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/create-npm-dirs.js +0 -8
- package/dist/commands/create-npm-dirs.js.map +0 -1
- package/dist/commands/help.js +0 -13
- package/dist/commands/help.js.map +0 -1
- package/dist/commands/new.js +0 -110
- package/dist/commands/new.js.map +0 -1
- package/dist/commands/pre-publish.js +0 -9
- package/dist/commands/pre-publish.js.map +0 -1
- package/dist/commands/rename.js +0 -8
- package/dist/commands/rename.js.map +0 -1
- package/dist/commands/universalize.js +0 -8
- package/dist/commands/universalize.js.map +0 -1
- package/dist/commands/version.js +0 -8
- package/dist/commands/version.js.map +0 -1
- package/dist/def/artifacts.js +0 -39
- package/dist/def/artifacts.js.map +0 -1
- package/dist/def/build.js +0 -118
- package/dist/def/build.js.map +0 -1
- package/dist/def/create-npm-dirs.js +0 -39
- package/dist/def/create-npm-dirs.js.map +0 -1
- package/dist/def/new.js +0 -67
- package/dist/def/new.js.map +0 -1
- package/dist/def/pre-publish.js +0 -57
- package/dist/def/pre-publish.js.map +0 -1
- package/dist/def/rename.js +0 -59
- package/dist/def/rename.js.map +0 -1
- package/dist/def/universalize.js +0 -34
- package/dist/def/universalize.js.map +0 -1
- package/dist/def/version.js +0 -34
- package/dist/def/version.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils/__tests__/target.spec.js +0 -11
- package/dist/utils/__tests__/target.spec.js.map +0 -1
- package/dist/utils/__tests__/typegen.spec.js +0 -42
- package/dist/utils/__tests__/typegen.spec.js.map +0 -1
- package/dist/utils/__tests__/version.spec.js +0 -6
- package/dist/utils/__tests__/version.spec.js.map +0 -1
- package/dist/utils/cargo.js +0 -34
- package/dist/utils/cargo.js.map +0 -1
- package/dist/utils/ci.d.ts +0 -11
- package/dist/utils/ci.js +0 -96
- package/dist/utils/ci.js.map +0 -1
- package/dist/utils/config.js +0 -43
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/index.js +0 -10
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/log.js +0 -15
- package/dist/utils/log.js.map +0 -1
- package/dist/utils/metadata.js +0 -20
- package/dist/utils/metadata.js.map +0 -1
- package/dist/utils/misc.js +0 -41
- package/dist/utils/misc.js.map +0 -1
- package/dist/utils/target.js +0 -121
- package/dist/utils/target.js.map +0 -1
- package/dist/utils/typegen.js +0 -179
- package/dist/utils/typegen.js.map +0 -1
- package/dist/utils/version.js +0 -60
- package/dist/utils/version.js.map +0 -1
- package/src/api/load-wasi-template.ts +0 -66
- package/src/api/wasi-worker-template.ts +0 -52
- package/src/utils/ci.ts +0 -111
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Target } from './target.js';
|
|
2
|
-
|
|
2
|
+
export type ValueOfConstArray<T> = T[Exclude<keyof T, keyof Array<any>>];
|
|
3
|
+
export declare const SupportedPackageManagers: readonly ["yarn", "pnpm"];
|
|
4
|
+
export declare const SupportedTestFrameworks: readonly ["ava"];
|
|
5
|
+
export type SupportedPackageManager = ValueOfConstArray<typeof SupportedPackageManagers>;
|
|
6
|
+
export type SupportedTestFramework = ValueOfConstArray<typeof SupportedTestFrameworks>;
|
|
7
|
+
export interface UserNapiConfig {
|
|
3
8
|
/**
|
|
4
9
|
* Name of the binary to be generated, default to `index`
|
|
5
10
|
*/
|
|
@@ -22,6 +27,42 @@ interface UserNapiConfig {
|
|
|
22
27
|
* Whether generate const enum for typescript bindings
|
|
23
28
|
*/
|
|
24
29
|
constEnum?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* dts header prepend to the generated dts file
|
|
32
|
+
*/
|
|
33
|
+
dtsHeader?: string;
|
|
34
|
+
/**
|
|
35
|
+
* dts header file path to be prepended to the generated dts file
|
|
36
|
+
* if both dtsHeader and dtsHeaderFile are provided, dtsHeaderFile will be used
|
|
37
|
+
*/
|
|
38
|
+
dtsHeaderFile?: string;
|
|
39
|
+
/**
|
|
40
|
+
* wasm compilation options
|
|
41
|
+
*/
|
|
42
|
+
wasm?: {
|
|
43
|
+
/**
|
|
44
|
+
* https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
|
|
45
|
+
* @default 4000 pages (256MiB)
|
|
46
|
+
*/
|
|
47
|
+
initialMemory?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @default 65536 pages (4GiB)
|
|
50
|
+
*/
|
|
51
|
+
maximumMemory?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Browser wasm binding configuration
|
|
54
|
+
*/
|
|
55
|
+
browser: {
|
|
56
|
+
/**
|
|
57
|
+
* Whether to use fs module in browser
|
|
58
|
+
*/
|
|
59
|
+
fs?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to initialize wasm asynchronously
|
|
62
|
+
*/
|
|
63
|
+
asyncInit?: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
25
66
|
/**
|
|
26
67
|
* @deprecated binaryName instead
|
|
27
68
|
*/
|
|
@@ -65,13 +106,16 @@ export interface CommonPackageJsonFields {
|
|
|
65
106
|
main?: string;
|
|
66
107
|
module?: string;
|
|
67
108
|
types?: string;
|
|
109
|
+
browser?: string;
|
|
68
110
|
exports?: any;
|
|
69
111
|
dependencies?: Record<string, string>;
|
|
70
112
|
devDependencies?: Record<string, string>;
|
|
113
|
+
ava?: {
|
|
114
|
+
timeout?: string;
|
|
115
|
+
};
|
|
71
116
|
}
|
|
72
|
-
export type NapiConfig = Required<Pick<UserNapiConfig, 'binaryName' | 'packageName' | 'npmClient'>> & {
|
|
117
|
+
export type NapiConfig = Required<Pick<UserNapiConfig, 'binaryName' | 'packageName' | 'npmClient'>> & Pick<UserNapiConfig, 'wasm' | 'dtsHeader' | 'dtsHeaderFile' | 'constEnum'> & {
|
|
73
118
|
targets: Target[];
|
|
74
119
|
packageJson: CommonPackageJsonFields;
|
|
75
120
|
};
|
|
76
|
-
export declare function readNapiConfig(path: string): Promise<NapiConfig>;
|
|
77
|
-
export {};
|
|
121
|
+
export declare function readNapiConfig(path: string, configPath?: string): Promise<NapiConfig>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './ci.js';
|
|
2
1
|
export * from './log.js';
|
|
3
2
|
export * from './misc.js';
|
|
4
3
|
export * from './target.js';
|
|
@@ -7,3 +6,4 @@ export * from './metadata.js';
|
|
|
7
6
|
export * from './config.js';
|
|
8
7
|
export * from './cargo.js';
|
|
9
8
|
export * from './typegen.js';
|
|
9
|
+
export * from './read-config.js';
|
package/dist/utils/metadata.d.ts
CHANGED
|
@@ -13,6 +13,18 @@ export interface Crate {
|
|
|
13
13
|
targets: CrateTarget[];
|
|
14
14
|
features: Record<string, string[]>;
|
|
15
15
|
manifest_path: string;
|
|
16
|
+
dependencies: Array<{
|
|
17
|
+
name: string;
|
|
18
|
+
source: string;
|
|
19
|
+
req: string;
|
|
20
|
+
kind: string | null;
|
|
21
|
+
rename: string | null;
|
|
22
|
+
optional: boolean;
|
|
23
|
+
uses_default_features: boolean;
|
|
24
|
+
features: string[];
|
|
25
|
+
target: string | null;
|
|
26
|
+
registry: string | null;
|
|
27
|
+
}>;
|
|
16
28
|
}
|
|
17
29
|
export interface CargoWorkspaceMetadata {
|
|
18
30
|
version: number;
|
|
@@ -21,4 +33,4 @@ export interface CargoWorkspaceMetadata {
|
|
|
21
33
|
target_directory: string;
|
|
22
34
|
workspace_root: string;
|
|
23
35
|
}
|
|
24
|
-
export declare function parseMetadata(manifestPath: string): CargoWorkspaceMetadata
|
|
36
|
+
export declare function parseMetadata(manifestPath: string): Promise<CargoWorkspaceMetadata>;
|
package/dist/utils/misc.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { readFile, writeFile, copyFile, mkdir, unlink, stat, readdir } from 'fs';
|
|
1
|
+
import { readFile, writeFile, copyFile, mkdir, unlink, stat, readdir } from 'node:fs';
|
|
3
2
|
export declare const readFileAsync: typeof readFile.__promisify__;
|
|
4
3
|
export declare const writeFileAsync: typeof writeFile.__promisify__;
|
|
5
4
|
export declare const unlinkAsync: typeof unlink.__promisify__;
|
|
@@ -8,6 +7,7 @@ export declare const mkdirAsync: typeof mkdir.__promisify__;
|
|
|
8
7
|
export declare const statAsync: typeof stat.__promisify__;
|
|
9
8
|
export declare const readdirAsync: typeof readdir.__promisify__;
|
|
10
9
|
export declare function fileExists(path: string): Promise<boolean>;
|
|
10
|
+
export declare function dirExistsAsync(path: string): Promise<boolean>;
|
|
11
11
|
export declare function pick<O, K extends keyof O>(o: O, ...keys: K[]): Pick<O, K>;
|
|
12
12
|
export declare function updatePackageJson(path: string, partial: Record<string, any>): Promise<void>;
|
|
13
|
-
export declare const CLI_VERSION:
|
|
13
|
+
export declare const CLI_VERSION: string;
|
package/dist/utils/target.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
1
|
export type Platform = NodeJS.Platform | 'wasm' | 'wasi';
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const UNIVERSAL_TARGETS: {
|
|
3
|
+
readonly 'universal-apple-darwin': readonly ["aarch64-apple-darwin", "x86_64-apple-darwin"];
|
|
4
|
+
};
|
|
5
|
+
export declare const AVAILABLE_TARGETS: readonly ["aarch64-apple-darwin", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "aarch64-pc-windows-msvc", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-unknown-freebsd", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-musleabihf", "armv7-linux-androideabi", "universal-apple-darwin", "riscv64gc-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-wasi-preview1-threads"];
|
|
4
6
|
export type TargetTriple = (typeof AVAILABLE_TARGETS)[number];
|
|
5
|
-
export declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
7
|
+
export declare const DEFAULT_TARGETS: readonly ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"];
|
|
6
8
|
export declare const TARGET_LINKER: Record<string, string>;
|
|
7
|
-
type NodeJSArch = 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 'riscv64' | 's390' | 's390x' | 'x32' | 'x64' | 'universal';
|
|
9
|
+
type NodeJSArch = 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 'riscv64' | 's390' | 's390x' | 'x32' | 'x64' | 'universal' | 'wasm32';
|
|
8
10
|
export declare const NodeArchToCpu: Record<string, string>;
|
|
9
11
|
export declare const UniArchsByPlatform: Partial<Record<Platform, NodeJSArch[]>>;
|
|
10
12
|
export interface Target {
|
|
11
13
|
triple: string;
|
|
12
14
|
platformArchABI: string;
|
|
13
15
|
platform: Platform;
|
|
14
|
-
arch: NodeJSArch
|
|
16
|
+
arch: NodeJSArch;
|
|
15
17
|
abi: string | null;
|
|
16
18
|
}
|
|
17
19
|
/**
|
package/dist/utils/typegen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const DEFAULT_TYPE_DEF_HEADER = "/* auto-generated by NAPI-RS */\n/* eslint-disable */\n";
|
|
2
|
-
export declare function processTypeDef(intermediateTypeFile: string, constEnum: boolean
|
|
2
|
+
export declare function processTypeDef(intermediateTypeFile: string, constEnum: boolean): Promise<{
|
|
3
3
|
dts: string;
|
|
4
4
|
exports: string[];
|
|
5
5
|
}>;
|
package/dist/utils/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.91",
|
|
4
4
|
"description": "Cli tools for napi-rs",
|
|
5
5
|
"author": "LongYinan <lynweklm@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/napi-rs/napi-rs",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"import": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
23
|
},
|
|
24
24
|
"require": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"./package.json": {
|
|
@@ -67,45 +67,47 @@
|
|
|
67
67
|
"url": "https://github.com/napi-rs/napi-rs/issues"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
70
|
+
"@inquirer/prompts": "^7.4.0",
|
|
71
|
+
"@napi-rs/cross-toolchain": "^0.0.19",
|
|
72
|
+
"@napi-rs/wasm-tools": "^0.0.3",
|
|
73
|
+
"@octokit/rest": "^22.0.0",
|
|
74
|
+
"clipanion": "^4.0.0-rc.4",
|
|
73
75
|
"colorette": "^2.0.20",
|
|
74
|
-
"debug": "^4.
|
|
75
|
-
"emnapi": "
|
|
76
|
-
"
|
|
76
|
+
"debug": "^4.4.0",
|
|
77
|
+
"emnapi": "^1.4.0",
|
|
78
|
+
"find-up": "^7.0.0",
|
|
77
79
|
"js-yaml": "^4.1.0",
|
|
78
80
|
"lodash-es": "^4.17.21",
|
|
79
|
-
"
|
|
80
|
-
"typanion": "^3.14.0"
|
|
81
|
+
"semver": "^7.7.1",
|
|
82
|
+
"typanion": "^3.14.0",
|
|
83
|
+
"wasm-sjlj": "^1.0.6"
|
|
81
84
|
},
|
|
82
85
|
"devDependencies": {
|
|
83
|
-
"@emnapi/core": "
|
|
84
|
-
"@emnapi/runtime": "
|
|
86
|
+
"@emnapi/core": "^1.4.0",
|
|
87
|
+
"@emnapi/runtime": "^1.4.0",
|
|
88
|
+
"@oxc-node/core": "^0.0.29",
|
|
89
|
+
"@std/toml": "npm:@jsr/std__toml@^1.0.8",
|
|
85
90
|
"@types/debug": "^4.1.12",
|
|
86
91
|
"@types/inquirer": "^9.0.7",
|
|
87
92
|
"@types/js-yaml": "^4.0.9",
|
|
88
|
-
"@types/lodash-es": "^4.17.
|
|
89
|
-
"
|
|
93
|
+
"@types/lodash-es": "^4.17.12",
|
|
94
|
+
"@types/node": "^22.13.16",
|
|
95
|
+
"@types/semver": "^7.7.0",
|
|
96
|
+
"ava": "^6.2.0",
|
|
90
97
|
"env-paths": "^3.0.0",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"typescript": "^5.2.2"
|
|
98
|
+
"prettier": "^3.5.3",
|
|
99
|
+
"rolldown": "^1.0.0-beta.19",
|
|
100
|
+
"tslib": "^2.8.1",
|
|
101
|
+
"typescript": "^5.8.2"
|
|
96
102
|
},
|
|
97
103
|
"peerDependencies": {
|
|
98
|
-
"@emnapi/runtime": "
|
|
99
|
-
"
|
|
100
|
-
"emnapi": "0.44.0"
|
|
104
|
+
"@emnapi/runtime": "^1.1.0",
|
|
105
|
+
"emnapi": "^1.1.0"
|
|
101
106
|
},
|
|
102
107
|
"peerDependenciesMeta": {
|
|
103
108
|
"@emnapi/runtime": {
|
|
104
109
|
"optional": true
|
|
105
110
|
},
|
|
106
|
-
"@tybys/wasm-util": {
|
|
107
|
-
"optional": true
|
|
108
|
-
},
|
|
109
111
|
"emnapi": {
|
|
110
112
|
"optional": true
|
|
111
113
|
}
|
|
@@ -115,18 +117,20 @@
|
|
|
115
117
|
"url": "https://github.com/sponsors/Brooooooklyn"
|
|
116
118
|
},
|
|
117
119
|
"scripts": {
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"build
|
|
121
|
-
"test": "node --
|
|
120
|
+
"clean": "node --import @oxc-node/core/register ./clean.ts",
|
|
121
|
+
"codegen": "node --import @oxc-node/core/register ./codegen/index.ts",
|
|
122
|
+
"build": "tsc && yarn clean && rolldown -c rolldown.config.js",
|
|
123
|
+
"test": "node --import @oxc-node/core/register ../node_modules/ava/entrypoints/cli.mjs"
|
|
122
124
|
},
|
|
123
125
|
"ava": {
|
|
124
126
|
"extensions": {
|
|
125
127
|
"ts": "module"
|
|
126
128
|
},
|
|
129
|
+
"timeout": "1m",
|
|
127
130
|
"files": [
|
|
128
|
-
"**/__tests__/**/*.spec.ts"
|
|
131
|
+
"**/__tests__/**/*.spec.ts",
|
|
132
|
+
"e2e/**/*.spec.ts"
|
|
129
133
|
]
|
|
130
134
|
},
|
|
131
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "71da5b6dc17064e478e5beb0ffa71f73d6238f7d"
|
|
132
136
|
}
|