auklet 0.0.5 → 0.0.6

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.
@@ -1,5 +1,5 @@
1
- import { createRequire } from 'node:module';
2
1
  import { fileURLToPath } from 'node:url';
2
+ import { createRequire } from 'node:module';
3
3
  import { execa } from 'execa';
4
4
  const require = createRequire(import.meta.url);
5
5
  const tsdownRunFile = require.resolve('tsdown/run');
@@ -1,4 +1,3 @@
1
- import { type UserConfig } from 'tsdown/config';
2
1
  import type { AukletConfig, PackageBuildFormat } from '#auklet/types';
3
2
  export type TsdownFormat = PackageBuildFormat;
4
3
  export declare function defineKernelPackageConfigFromOptions(
@@ -144,5 +143,74 @@ export declare function defineKernelPackageConfigFromFile(
144
143
  }
145
144
  )[]
146
145
  >;
147
- declare const _default: Promise<UserConfig[]>;
146
+ declare const _default: Promise<
147
+ (
148
+ | {
149
+ entry: {
150
+ index: string;
151
+ };
152
+ format: PackageBuildFormat;
153
+ globalName: string;
154
+ outDir: string;
155
+ dts: boolean;
156
+ treeshake: true;
157
+ banner: string;
158
+ outExtensions: () => {
159
+ js: string;
160
+ };
161
+ outputOptions: {
162
+ entryFileNames: string;
163
+ chunkFileNames: string;
164
+ globals: {
165
+ [k: string]: string;
166
+ };
167
+ };
168
+ cwd: string;
169
+ root: string;
170
+ clean: false;
171
+ sourcemap: false;
172
+ tsconfig: string;
173
+ target: NonNullable<
174
+ import('#auklet/types').PackageBuildTarget | undefined
175
+ >;
176
+ platform: NonNullable<
177
+ import('#auklet/types').PackageBuildPlatform | undefined
178
+ >;
179
+ deps: import('node_modules/tsdown/dist/types-CQaSBA5U.mjs').L;
180
+ define: {
181
+ __TEST__: string;
182
+ __VERSION__: string;
183
+ __DEV__: string;
184
+ };
185
+ }
186
+ | {
187
+ entry: Record<string, string>;
188
+ format: 'cjs' | 'esm';
189
+ outDir: string;
190
+ dts: true;
191
+ unbundle: true;
192
+ outExtensions: () => {
193
+ js: string;
194
+ dts: string;
195
+ };
196
+ cwd: string;
197
+ root: string;
198
+ clean: false;
199
+ sourcemap: false;
200
+ tsconfig: string;
201
+ target: NonNullable<
202
+ import('#auklet/types').PackageBuildTarget | undefined
203
+ >;
204
+ platform: NonNullable<
205
+ import('#auklet/types').PackageBuildPlatform | undefined
206
+ >;
207
+ deps: import('node_modules/tsdown/dist/types-CQaSBA5U.mjs').L;
208
+ define: {
209
+ __TEST__: string;
210
+ __VERSION__: string;
211
+ __DEV__: string;
212
+ };
213
+ }
214
+ )[]
215
+ >;
148
216
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
- import { defineConfig } from 'tsdown/config';
4
3
  import { loadAukletConfig } from '#auklet/configLoader';
5
4
  import { normalizeAukletConfig } from '#auklet/config';
6
5
  const formatMap = {
@@ -263,6 +262,4 @@ export async function defineKernelPackageConfigFromFile(
263
262
  const config = await loadAukletConfig(packageRoot, { cacheBust: true });
264
263
  return defineKernelPackageConfigFromOptions(packageRoot, config);
265
264
  }
266
- export default defineKernelPackageConfigFromFile(process.cwd()).then((config) =>
267
- defineConfig(config),
268
- );
265
+ export default defineKernelPackageConfigFromFile(process.cwd());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auklet",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "author": "chentao.arthur",
6
6
  "packageManager": "pnpm@10.27.0",