@modern-js/babel-compiler 2.58.1 → 2.58.2

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,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import * as Event from 'events';
3
- import { FSWatcher } from '@modern-js/utils';
3
+ import { type FSWatcher } from '@modern-js/utils';
4
4
  import type { IFinaleCompilerOptions, BabelOptions } from './type';
5
5
  export declare const BuildWatchEvent: {
6
6
  firstCompiler: string;
@@ -1,5 +1,5 @@
1
1
  import * as babel from '@babel/core';
2
- import { BabelOptions, IVirtualDist } from './type';
2
+ import type { BabelOptions, IVirtualDist } from './type';
3
3
  export interface ISingleFileCompilerOption {
4
4
  filepath: string;
5
5
  rootDir: string;
@@ -1,4 +1,4 @@
1
- import { ICompilerResult, ICompilerMessageDetail } from './type';
1
+ import type { ICompilerResult, ICompilerMessageDetail } from './type';
2
2
  export declare class CompilerErrorResult {
3
3
  _messageDetails: ICompilerMessageDetail[];
4
4
  constructor(initErrorResult?: ICompilerResult);
@@ -1,2 +1,2 @@
1
- import { ICompilerOptions, ICompilerOptionsWithDefault } from './type';
1
+ import type { ICompilerOptions, ICompilerOptionsWithDefault } from './type';
2
2
  export declare const mergeDefaultOption: (compilerOptions: ICompilerOptions) => ICompilerOptionsWithDefault;
@@ -1,5 +1,5 @@
1
- import { GlobOptions } from '@modern-js/utils';
2
- import { Extensions, ExtensionsFunc, ICompilerOptions, IFinaleCompilerOptions } from './type';
1
+ import { type GlobOptions } from '@modern-js/utils';
2
+ import type { Extensions, ExtensionsFunc, ICompilerOptions, IFinaleCompilerOptions } from './type';
3
3
  export declare const getGlobPattern: (dir: string, extensions: Extensions) => string;
4
4
  export declare const getFinalExtensions: (extensions: Extensions | ExtensionsFunc | undefined) => string[];
5
5
  export declare const getFilesFromDir: ({ dir, finalExt, ignore, }: {
@@ -1,5 +1,5 @@
1
- import { ICompilerOptions, ICompilerResult, BabelOptions } from './type';
2
- import { BuildWatchEmitter } from './buildWatch';
1
+ import type { ICompilerOptions, ICompilerResult, BabelOptions } from './type';
2
+ import { type BuildWatchEmitter } from './buildWatch';
3
3
  export declare function compiler(compilerOptions: ICompilerOptions & {
4
4
  enableWatch: true;
5
5
  }, babelOptions?: BabelOptions): Promise<BuildWatchEmitter>;
@@ -1,4 +1,4 @@
1
- import { ICompilerOptions, ICompilerResult } from './type';
1
+ import type { ICompilerOptions, ICompilerResult } from './type';
2
2
  export declare const sourceDirAndFileNamesValidMessage = "At least one of the sourceDir and filenames configurations must be configured";
3
3
  export declare const watchDirValidMessage = "should set watchDir when enableWatch is true";
4
4
  export declare const validateSourceDirAndFileNames: (compilerOptions: ICompilerOptions) => ICompilerResult | null;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.1",
18
+ "version": "2.58.2",
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.24.7",
35
35
  "@swc/helpers": "0.5.3",
36
- "@modern-js/utils": "2.58.1"
36
+ "@modern-js/utils": "2.58.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/plugin-transform-classes": "^7.22.15",
@@ -44,8 +44,8 @@
44
44
  "@types/node": "^14",
45
45
  "jest": "^29",
46
46
  "typescript": "^5",
47
- "@scripts/build": "2.58.1",
48
- "@scripts/jest-config": "2.58.1"
47
+ "@scripts/build": "2.58.2",
48
+ "@scripts/jest-config": "2.58.2"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {