@visulima/packem 1.0.0-alpha.92 → 1.0.0-alpha.94
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/CHANGELOG.md +13 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +4 -4
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +30 -0
- package/dist/create-bundler.cjs +44 -46
- package/dist/create-bundler.d.cts +5 -3
- package/dist/create-bundler.d.mts +2 -2
- package/dist/create-bundler.d.ts +33 -0
- package/dist/create-bundler.mjs +47 -49
- package/dist/rollup/plugins/esbuild/index.d.cts +3 -1
- package/dist/rollup/plugins/esbuild/index.d.ts +11 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.cjs +1 -1
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.cts +4 -2
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.mts +1 -1
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +28 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.mjs +1 -1
- package/dist/rollup/plugins/sucrase/index.d.cts +3 -1
- package/dist/rollup/plugins/sucrase/index.d.ts +10 -0
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.cts +4 -2
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.mts +1 -1
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +28 -0
- package/dist/rollup/plugins/swc/swc-plugin.d.cts +3 -1
- package/dist/rollup/plugins/swc/swc-plugin.d.ts +9 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.cts +4 -2
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.mts +1 -1
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +29 -0
- package/dist/shared/{types-Dsjttiwj.d.mts → types-BvTSoulI.d.mts} +2 -0
- package/dist/shared/types-CzGE8V_d.d.ts +1951 -0
- package/dist/shared/types-Db-Z_7e-.d.ts +25 -0
- package/dist/shared/{types-DHXy1EpK.d.cts → types-DsYp-kFd.d.cts} +2 -0
- package/dist/shared/types-DvWhOdt5.d.ts +10 -0
- package/dist/shared/types-htgF7Xtw.d.ts +208 -0
- package/package.json +37 -15
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
|
+
import { Pail } from '@visulima/pail';
|
|
3
|
+
import { Loader, TransformOptions, BuildOptions } from 'esbuild';
|
|
4
|
+
|
|
5
|
+
type MarkOptional<Type, Keys extends keyof Type> = Type extends Type ? Omit<Type, Keys> & Partial<Pick<Type, Keys>> : never;
|
|
6
|
+
|
|
7
|
+
type Options = {
|
|
8
|
+
exclude?: FilterPattern;
|
|
9
|
+
include?: FilterPattern;
|
|
10
|
+
loaders?: Record<string, Loader | false>;
|
|
11
|
+
optimizeDeps?: MarkOptional<OptimizeDepsOptions, "cwd" | "sourceMap">;
|
|
12
|
+
sourceMap?: boolean;
|
|
13
|
+
} & Omit<TransformOptions, "loader" | "sourcemap">;
|
|
14
|
+
type OptimizeDepsOptions = {
|
|
15
|
+
cwd: string;
|
|
16
|
+
esbuildOptions?: BuildOptions;
|
|
17
|
+
exclude?: string[];
|
|
18
|
+
include: string[];
|
|
19
|
+
sourceMap: boolean;
|
|
20
|
+
};
|
|
21
|
+
type EsbuildPluginConfig = {
|
|
22
|
+
logger: Pail;
|
|
23
|
+
} & Options;
|
|
24
|
+
|
|
25
|
+
export type { EsbuildPluginConfig as E, Options as O };
|
|
@@ -150,6 +150,7 @@ interface BuildOptions {
|
|
|
150
150
|
jiti: Omit<JITIOptions, "onError" | "transform">;
|
|
151
151
|
};
|
|
152
152
|
transformer?: (config: SwcPluginConfig | SucrasePluginConfig | EsbuildPluginConfig) => Plugin;
|
|
153
|
+
writeTypesVersionsToPackageJson?: boolean;
|
|
153
154
|
}
|
|
154
155
|
interface BuildHooks {
|
|
155
156
|
"build:before": (context: BuildContext) => Promise<void> | void;
|
|
@@ -162,6 +163,7 @@ interface BuildHooks {
|
|
|
162
163
|
"rollup:dts:options": (context: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
163
164
|
"rollup:options": (context: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
164
165
|
"rollup:watch": (context: BuildContext, watcher: RollupWatcher) => Promise<void> | void;
|
|
166
|
+
"validate:done": (context: BuildContext) => Promise<void> | void;
|
|
165
167
|
}
|
|
166
168
|
type BuildContextBuildEntry = {
|
|
167
169
|
bytes?: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
|
+
import { Options } from 'sucrase';
|
|
3
|
+
|
|
4
|
+
interface SucrasePluginConfig extends Options {
|
|
5
|
+
exclude?: FilterPattern;
|
|
6
|
+
extensions?: string[];
|
|
7
|
+
include?: FilterPattern;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type { SucrasePluginConfig as S };
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { RollupAliasOptions } from '@rollup/plugin-alias';
|
|
2
|
+
import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
|
|
3
|
+
import { RollupJsonOptions } from '@rollup/plugin-json';
|
|
4
|
+
import { RollupNodeResolveOptions } from '@rollup/plugin-node-resolve';
|
|
5
|
+
import { RollupReplaceOptions } from '@rollup/plugin-replace';
|
|
6
|
+
import { RollupWasmOptions } from '@rollup/plugin-wasm';
|
|
7
|
+
import { FilterPattern } from '@rollup/pluginutils';
|
|
8
|
+
import { PackageJson } from '@visulima/package';
|
|
9
|
+
import { Pail } from '@visulima/pail';
|
|
10
|
+
import { TsConfigResult } from '@visulima/tsconfig';
|
|
11
|
+
import { Hookable } from 'hookable';
|
|
12
|
+
import { JITIOptions } from 'jiti';
|
|
13
|
+
import { OutputOptions, RollupOptions, Plugin, RollupBuild, RollupWatcher } from 'rollup';
|
|
14
|
+
import { Options } from 'rollup-plugin-dts';
|
|
15
|
+
import { NodePolyfillsOptions } from 'rollup-plugin-polyfill-node';
|
|
16
|
+
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
17
|
+
import { O as Options$1, E as EsbuildPluginConfig } from './types-Db-Z_7e-.js';
|
|
18
|
+
import { S as SucrasePluginConfig } from './types-DvWhOdt5.js';
|
|
19
|
+
import { S as SwcPluginConfig } from './types-CzGE8V_d.js';
|
|
20
|
+
|
|
21
|
+
interface CJSInteropOptions {
|
|
22
|
+
addDefaultProperty?: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type SingleTargetDesc = {
|
|
26
|
+
dest?: string;
|
|
27
|
+
exclude?: string[] | string;
|
|
28
|
+
src: string[] | string;
|
|
29
|
+
};
|
|
30
|
+
type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
|
|
31
|
+
type CopyPluginOptions = {
|
|
32
|
+
copyOnce?: boolean;
|
|
33
|
+
exactFileNames?: boolean;
|
|
34
|
+
flatten?: boolean;
|
|
35
|
+
targets: MultipleTargetsDesc;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
interface EsmShimCjsSyntaxOptions {
|
|
39
|
+
exclude?: FilterPattern;
|
|
40
|
+
include?: FilterPattern;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type IsolatedDeclarationsOptions = {
|
|
44
|
+
exclude?: FilterPattern;
|
|
45
|
+
ignoreErrors?: boolean;
|
|
46
|
+
include?: FilterPattern;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type JSXRemoveAttributesPlugin = {
|
|
50
|
+
attributes: string[];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
interface LicenseOptions {
|
|
54
|
+
dependenciesMarker?: string;
|
|
55
|
+
dependenciesTemplate?: (licenses: string[], dependencyLicenseTexts: string, packageName: string | undefined) => string;
|
|
56
|
+
dtsMarker?: string;
|
|
57
|
+
dtsTemplate?: (licenses: string[], dependencyLicenseTexts: string, packageName: string | undefined) => string;
|
|
58
|
+
path?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface RawLoaderOptions {
|
|
62
|
+
exclude?: FilterPattern;
|
|
63
|
+
include?: FilterPattern;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface PatchTypesOptions {
|
|
67
|
+
identifierReplacements?: Record<string, Record<string, string>>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
type DeepPartial<T> = {
|
|
71
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
72
|
+
};
|
|
73
|
+
interface RollupDynamicImportVariablesOptions {
|
|
74
|
+
errorWhenNoFilesFound?: boolean;
|
|
75
|
+
exclude?: FilterPattern;
|
|
76
|
+
include?: FilterPattern;
|
|
77
|
+
warnOnError?: boolean;
|
|
78
|
+
}
|
|
79
|
+
type Environment = "production" | "development" | undefined;
|
|
80
|
+
interface RollupBuildOptions {
|
|
81
|
+
alias: RollupAliasOptions | false;
|
|
82
|
+
cjsInterop?: CJSInteropOptions;
|
|
83
|
+
commonjs: RollupCommonJSOptions | false;
|
|
84
|
+
copy?: CopyPluginOptions | false;
|
|
85
|
+
dts: Options;
|
|
86
|
+
dynamicVars?: RollupDynamicImportVariablesOptions | false;
|
|
87
|
+
esbuild: Options$1 | false;
|
|
88
|
+
isolatedDeclarations?: IsolatedDeclarationsOptions;
|
|
89
|
+
json: RollupJsonOptions | false;
|
|
90
|
+
jsxRemoveAttributes?: JSXRemoveAttributesPlugin | false;
|
|
91
|
+
license?: LicenseOptions | false;
|
|
92
|
+
metafile?: boolean;
|
|
93
|
+
output?: OutputOptions;
|
|
94
|
+
patchTypes: PatchTypesOptions | false;
|
|
95
|
+
polyfillNode?: NodePolyfillsOptions | false;
|
|
96
|
+
preserveDirectives?: {
|
|
97
|
+
directiveRegex?: RegExp;
|
|
98
|
+
exclude?: FilterPattern;
|
|
99
|
+
include?: FilterPattern;
|
|
100
|
+
};
|
|
101
|
+
preserveDynamicImports?: boolean;
|
|
102
|
+
raw?: RawLoaderOptions | false;
|
|
103
|
+
replace: RollupReplaceOptions | false;
|
|
104
|
+
resolve: RollupNodeResolveOptions | false;
|
|
105
|
+
shim?: EsmShimCjsSyntaxOptions | false;
|
|
106
|
+
sucrase?: SucrasePluginConfig | false;
|
|
107
|
+
swc?: SwcPluginConfig | false;
|
|
108
|
+
treeshake?: RollupOptions["treeshake"];
|
|
109
|
+
visualizer?: PluginVisualizerOptions | false;
|
|
110
|
+
watch?: RollupOptions["watch"];
|
|
111
|
+
wsam?: RollupWasmOptions | false;
|
|
112
|
+
}
|
|
113
|
+
type Runtime = "react-server" | "react-native" | "edge-light" | "node";
|
|
114
|
+
type BuildEntry = {
|
|
115
|
+
cjs?: boolean;
|
|
116
|
+
declaration?: boolean | "compatible" | "node16";
|
|
117
|
+
environment?: Environment;
|
|
118
|
+
esm?: boolean;
|
|
119
|
+
executable?: boolean;
|
|
120
|
+
fileAlias?: string;
|
|
121
|
+
input: string;
|
|
122
|
+
isGlob?: boolean;
|
|
123
|
+
name?: string;
|
|
124
|
+
outDir?: string;
|
|
125
|
+
runtime?: Runtime;
|
|
126
|
+
};
|
|
127
|
+
interface BuildOptions {
|
|
128
|
+
alias: Record<string, string>;
|
|
129
|
+
cjsInterop?: boolean;
|
|
130
|
+
clean: boolean;
|
|
131
|
+
debug: boolean;
|
|
132
|
+
declaration?: boolean | "compatible" | "node16" | undefined;
|
|
133
|
+
emitCJS?: boolean;
|
|
134
|
+
emitESM?: boolean;
|
|
135
|
+
entries: BuildEntry[];
|
|
136
|
+
externals: (RegExp | string)[];
|
|
137
|
+
failOnWarn?: boolean;
|
|
138
|
+
fileCache?: boolean;
|
|
139
|
+
isolatedDeclarationTransformer?: (code: string, id: string) => Promise<IsolatedDeclarationsResult>;
|
|
140
|
+
minify?: boolean | undefined;
|
|
141
|
+
name: string;
|
|
142
|
+
outDir: string;
|
|
143
|
+
replace: Record<string, string>;
|
|
144
|
+
rollup: RollupBuildOptions;
|
|
145
|
+
rootDir: string;
|
|
146
|
+
sourceDir: string;
|
|
147
|
+
sourcemap: boolean;
|
|
148
|
+
stub: boolean;
|
|
149
|
+
stubOptions: {
|
|
150
|
+
jiti: Omit<JITIOptions, "onError" | "transform">;
|
|
151
|
+
};
|
|
152
|
+
transformer?: (config: SwcPluginConfig | SucrasePluginConfig | EsbuildPluginConfig) => Plugin;
|
|
153
|
+
writeTypesVersionsToPackageJson?: boolean;
|
|
154
|
+
}
|
|
155
|
+
interface BuildHooks {
|
|
156
|
+
"build:before": (context: BuildContext) => Promise<void> | void;
|
|
157
|
+
"build:done": (context: BuildContext) => Promise<void> | void;
|
|
158
|
+
"build:prepare": (context: BuildContext) => Promise<void> | void;
|
|
159
|
+
"rollup:build": (context: BuildContext, build: RollupBuild) => Promise<void> | void;
|
|
160
|
+
"rollup:done": (context: BuildContext) => Promise<void> | void;
|
|
161
|
+
"rollup:dts:build": (context: BuildContext, build: RollupBuild) => Promise<void> | void;
|
|
162
|
+
"rollup:dts:done": (context: BuildContext) => Promise<void> | void;
|
|
163
|
+
"rollup:dts:options": (context: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
164
|
+
"rollup:options": (context: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
165
|
+
"rollup:watch": (context: BuildContext, watcher: RollupWatcher) => Promise<void> | void;
|
|
166
|
+
"validate:done": (context: BuildContext) => Promise<void> | void;
|
|
167
|
+
}
|
|
168
|
+
type BuildContextBuildEntry = {
|
|
169
|
+
bytes?: number;
|
|
170
|
+
chunk?: boolean;
|
|
171
|
+
chunks?: string[];
|
|
172
|
+
exports?: string[];
|
|
173
|
+
modules?: {
|
|
174
|
+
bytes: number;
|
|
175
|
+
id: string;
|
|
176
|
+
}[];
|
|
177
|
+
path: string;
|
|
178
|
+
type?: "asset" | "chunk" | "entry";
|
|
179
|
+
};
|
|
180
|
+
interface InternalBuildOptions extends BuildOptions {
|
|
181
|
+
transformerName: "esbuild" | "sucrase" | "swc" | undefined;
|
|
182
|
+
}
|
|
183
|
+
interface BuildContext {
|
|
184
|
+
buildEntries: BuildContextBuildEntry[];
|
|
185
|
+
dependencyGraphMap: Map<string, Set<[string, string]>>;
|
|
186
|
+
environment: Environment;
|
|
187
|
+
hooks: Hookable<BuildHooks>;
|
|
188
|
+
logger: Pail;
|
|
189
|
+
mode: Mode;
|
|
190
|
+
options: InternalBuildOptions;
|
|
191
|
+
pkg: PackageJson;
|
|
192
|
+
tsconfig?: TsConfigResult;
|
|
193
|
+
usedImports: Set<string>;
|
|
194
|
+
warnings: Set<string>;
|
|
195
|
+
}
|
|
196
|
+
type BuildPreset = BuildConfig | (() => BuildConfig);
|
|
197
|
+
interface BuildConfig extends DeepPartial<Omit<BuildOptions, "entries">> {
|
|
198
|
+
entries?: (BuildEntry | string)[];
|
|
199
|
+
hooks?: Partial<BuildHooks>;
|
|
200
|
+
preset?: BuildPreset | "auto" | "none" | (NonNullable<unknown> & string);
|
|
201
|
+
}
|
|
202
|
+
type Mode = "build" | "jit" | "watch";
|
|
203
|
+
interface IsolatedDeclarationsResult {
|
|
204
|
+
errors: string[];
|
|
205
|
+
sourceText: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type { BuildConfig as B, Environment as E, IsolatedDeclarationsResult as I, Mode as M, RollupBuildOptions as R, BuildContext as a, BuildContextBuildEntry as b, BuildEntry as c, BuildHooks as d, BuildOptions as e, BuildPreset as f, Runtime as g };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.94",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -33,9 +33,12 @@
|
|
|
33
33
|
"bunchee"
|
|
34
34
|
],
|
|
35
35
|
"homepage": "https://www.visulima.com/docs/package/packem",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/visulima/packem/issues"
|
|
38
|
+
},
|
|
36
39
|
"repository": {
|
|
37
40
|
"type": "git",
|
|
38
|
-
"url": "https://github.com/visulima/packem.git",
|
|
41
|
+
"url": "git+https://github.com/visulima/packem.git",
|
|
39
42
|
"directory": "packages/packem"
|
|
40
43
|
},
|
|
41
44
|
"funding": [
|
|
@@ -138,6 +141,23 @@
|
|
|
138
141
|
},
|
|
139
142
|
"./package.json": "./package.json"
|
|
140
143
|
},
|
|
144
|
+
"main": "dist/create-bundler.cjs",
|
|
145
|
+
"module": "dist/create-bundler.mjs",
|
|
146
|
+
"types": "dist/create-bundler.d.ts",
|
|
147
|
+
"typesVersions": {
|
|
148
|
+
"*": {
|
|
149
|
+
"*": [
|
|
150
|
+
"./dist/config.d.ts",
|
|
151
|
+
"./dist/create-bundler.d.ts",
|
|
152
|
+
"./dist/rollup/plugins/esbuild/index.d.ts",
|
|
153
|
+
"./dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts",
|
|
154
|
+
"./dist/rollup/plugins/sucrase/index.d.ts",
|
|
155
|
+
"./dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts",
|
|
156
|
+
"./dist/rollup/plugins/swc/swc-plugin.d.ts",
|
|
157
|
+
"./dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
141
161
|
"bin": {
|
|
142
162
|
"packem": "./dist/cli.mjs"
|
|
143
163
|
},
|
|
@@ -160,15 +180,15 @@
|
|
|
160
180
|
"@rollup/plugin-replace": "^5.0.7",
|
|
161
181
|
"@rollup/plugin-wasm": "^6.2.2",
|
|
162
182
|
"@rollup/pluginutils": "^5.1.0",
|
|
163
|
-
"@visulima/cerebro": "^1.1.
|
|
164
|
-
"@visulima/colorize": "^1.4.
|
|
165
|
-
"@visulima/find-cache-dir": "^1.0.
|
|
166
|
-
"@visulima/fs": "^2.1.
|
|
167
|
-
"@visulima/humanizer": "^1.0.
|
|
168
|
-
"@visulima/package": "^3.0.
|
|
169
|
-
"@visulima/pail": "^2.1.
|
|
170
|
-
"@visulima/path": "^1.0.
|
|
171
|
-
"@visulima/tsconfig": "^1.0.
|
|
183
|
+
"@visulima/cerebro": "^1.1.17",
|
|
184
|
+
"@visulima/colorize": "^1.4.7",
|
|
185
|
+
"@visulima/find-cache-dir": "^1.0.8",
|
|
186
|
+
"@visulima/fs": "^2.1.15",
|
|
187
|
+
"@visulima/humanizer": "^1.0.9",
|
|
188
|
+
"@visulima/package": "^3.0.9",
|
|
189
|
+
"@visulima/pail": "^2.1.6",
|
|
190
|
+
"@visulima/path": "^1.0.6",
|
|
191
|
+
"@visulima/tsconfig": "^1.0.10",
|
|
172
192
|
"defu": "6.1.4",
|
|
173
193
|
"es-module-lexer": "^1.5.4",
|
|
174
194
|
"fastest-levenshtein": "^1.0.16",
|
|
@@ -177,7 +197,7 @@
|
|
|
177
197
|
"is-glob": "^4.0.3",
|
|
178
198
|
"magic-string": "^0.30.11",
|
|
179
199
|
"mlly": "^1.7.1",
|
|
180
|
-
"oxc-parser": "^0.
|
|
200
|
+
"oxc-parser": "^0.27.0",
|
|
181
201
|
"rollup": "^4.21.2",
|
|
182
202
|
"rollup-plugin-dts": "^6.1.1",
|
|
183
203
|
"rollup-plugin-license": "^3.5.2",
|
|
@@ -191,12 +211,13 @@
|
|
|
191
211
|
"@anolilab/prettier-config": "^5.0.14",
|
|
192
212
|
"@anolilab/semantic-release-pnpm": "^1.1.3",
|
|
193
213
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
214
|
+
"@arethetypeswrong/cli": "^0.16.1",
|
|
194
215
|
"@babel/core": "^7.25.2",
|
|
195
216
|
"@rushstack/eslint-plugin-security": "^0.8.2",
|
|
196
217
|
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
|
|
197
|
-
"@swc/core": "^1.7.
|
|
218
|
+
"@swc/core": "^1.7.23",
|
|
198
219
|
"@swc/types": "0.1.12",
|
|
199
|
-
"@total-typescript/ts-reset": "^0.6.
|
|
220
|
+
"@total-typescript/ts-reset": "^0.6.1",
|
|
200
221
|
"@types/estree": "^1.0.5",
|
|
201
222
|
"@types/glob": "^8.1.0",
|
|
202
223
|
"@types/glob-parent": "^5.1.3",
|
|
@@ -221,7 +242,7 @@
|
|
|
221
242
|
"estree-walker": "^3.0.3",
|
|
222
243
|
"execa": "^9.3.1",
|
|
223
244
|
"jiti": "^1.21.6",
|
|
224
|
-
"oxc-transform": "^0.
|
|
245
|
+
"oxc-transform": "^0.27.0",
|
|
225
246
|
"prettier": "^3.3.3",
|
|
226
247
|
"react": "^18.3.1",
|
|
227
248
|
"react-dom": "^18.3.1",
|
|
@@ -291,6 +312,7 @@
|
|
|
291
312
|
"build:prod": "cross-env JITI_ESM_RESOLVE=1 INTERNAL_PACKEM_BUILD=1 jiti ./src/cli build --production",
|
|
292
313
|
"clean": "rimraf node_modules dist .eslintcache",
|
|
293
314
|
"dev": "pnpm run build",
|
|
315
|
+
"lint:attw": "attw --pack",
|
|
294
316
|
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
295
317
|
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
296
318
|
"lint:fix": "pnpm run lint:prettier:fix && pnpm run lint:eslint:fix",
|