@modern-js/babel-compiler 2.65.4 → 2.66.0

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,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import * as Event from 'events';
3
2
  import { type FSWatcher } from '@modern-js/utils';
4
3
  import type { BabelOptions, IFinaleCompilerOptions } from './type';
@@ -12,5 +11,5 @@ export declare class BuildWatchEmitter extends Event.EventEmitter {
12
11
  setInitFn(fn: (emitter: BuildWatchEmitter) => Promise<any> | any): void;
13
12
  watch(): Promise<FSWatcher | null>;
14
13
  }
15
- export declare const runBuildWatch: (option: IFinaleCompilerOptions, babelConfig: import("@babel/core").TransformOptions | undefined, emitter: BuildWatchEmitter) => Promise<FSWatcher>;
14
+ export declare const runBuildWatch: (option: IFinaleCompilerOptions, babelConfig: BabelOptions | undefined, emitter: BuildWatchEmitter) => Promise<FSWatcher>;
16
15
  export declare const buildWatch: (option: IFinaleCompilerOptions, babelConfig?: BabelOptions) => BuildWatchEmitter;
@@ -4,7 +4,7 @@ export declare const getGlobPattern: (dir: string, extensions: Extensions) => st
4
4
  export declare const getFinalExtensions: (extensions: Extensions | ExtensionsFunc | undefined) => string[];
5
5
  export declare const getFilesFromDir: ({ dir, finalExt, ignore, }: {
6
6
  dir: string;
7
- finalExt?: string[] | undefined;
8
- ignore?: GlobOptions['ignore'];
7
+ finalExt?: string[];
8
+ ignore?: GlobOptions["ignore"];
9
9
  }) => string[];
10
10
  export declare const getFinalCompilerOption: (option: ICompilerOptions) => IFinaleCompilerOptions;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.65.4",
18
+ "version": "2.66.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@babel/core": "^7.26.0",
35
35
  "@swc/helpers": "0.5.13",
36
- "@modern-js/utils": "2.65.4"
36
+ "@modern-js/utils": "2.66.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/plugin-transform-classes": "^7.22.15",
@@ -44,14 +44,13 @@
44
44
  "@types/node": "^14",
45
45
  "jest": "^29",
46
46
  "typescript": "^5",
47
- "@scripts/build": "2.65.4",
48
- "@scripts/jest-config": "2.65.4"
47
+ "@scripts/jest-config": "2.66.0",
48
+ "@scripts/build": "2.66.0"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {
52
52
  "registry": "https://registry.npmjs.org/",
53
- "access": "public",
54
- "provenance": true
53
+ "access": "public"
55
54
  },
56
55
  "scripts": {
57
56
  "new": "modern-lib new",