@visulima/packem 1.18.2 → 1.18.4
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 +17 -0
- package/README.md +39 -0
- package/dist/cli/index.mjs +187 -0
- package/dist/config/index.cjs +1 -1
- package/dist/config/index.d.cts +2 -13
- package/dist/config/index.d.mts +2 -13
- package/dist/config/index.d.ts +2 -13
- package/dist/config/index.mjs +1 -1
- package/dist/config/utils/load-package-json.d.cts +8 -0
- package/dist/{utils → config/utils}/load-package-json.d.mts +2 -2
- package/dist/config/utils/load-package-json.d.ts +8 -0
- package/dist/config/utils/load-packem-config.d.mts +7 -0
- package/dist/config/utils/load-preset.d.mts +4 -0
- package/dist/config/utils/load-tsconfig.d.cts +7 -0
- package/dist/config/utils/load-tsconfig.d.mts +5 -0
- package/dist/config/utils/load-tsconfig.d.ts +7 -0
- package/dist/index.cjs +125 -0
- package/dist/index.d.cts +53 -0
- package/dist/index.d.mts +53 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.mjs +131 -0
- package/dist/packem/index.d.cts +1 -6
- package/dist/packem/index.d.mts +1 -6
- package/dist/packem/index.d.ts +1 -6
- package/dist/packem_shared/constants-CR0qfKZx.cjs +1 -0
- package/dist/packem_shared/{constants-DSQIKVQe.mjs → constants-CwJdgxph.mjs} +1 -1
- package/dist/rollup/plugins/esbuild/index.cjs +1 -1
- package/dist/rollup/plugins/esbuild/index.mjs +1 -1
- package/dist/rollup/plugins/oxc/oxc-transformer.cjs +1 -1
- package/dist/rollup/plugins/oxc/oxc-transformer.mjs +2 -2
- package/dist/rollup/plugins/sucrase/index.cjs +1 -1
- package/dist/rollup/plugins/sucrase/index.mjs +1 -1
- package/dist/rollup/plugins/swc/swc-plugin.cjs +1 -1
- package/dist/rollup/plugins/swc/swc-plugin.mjs +1 -1
- package/dist/types.d.cts +12 -1
- package/dist/types.d.mts +12 -1
- package/dist/types.d.ts +12 -1
- package/package.json +10 -10
- package/dist/cli.mjs +0 -187
- package/dist/hooks/preset/auto.d.cts +0 -5
- package/dist/hooks/preset/auto.d.ts +0 -5
- package/dist/hooks/preset/utils/infer-entries.d.cts +0 -14
- package/dist/hooks/preset/utils/infer-entries.d.ts +0 -14
- package/dist/hooks/preset/utils/overwrite-with-publish-config.d.cts +0 -6
- package/dist/hooks/preset/utils/overwrite-with-publish-config.d.ts +0 -6
- package/dist/hooks/preset/utils/resolve-preset.d.cts +0 -6
- package/dist/hooks/preset/utils/resolve-preset.d.mts +0 -4
- package/dist/hooks/preset/utils/resolve-preset.d.ts +0 -6
- package/dist/packem/index.cjs +0 -125
- package/dist/packem/index.mjs +0 -131
- package/dist/packem_shared/constants-C98jAkyM.cjs +0 -1
- package/dist/utils/find-packem-file.d.cts +0 -4
- package/dist/utils/find-packem-file.d.ts +0 -4
- package/dist/utils/load-package-json.d.cts +0 -8
- package/dist/utils/load-package-json.d.ts +0 -8
- /package/dist/{commands → cli/commands}/add.d.mts +0 -0
- /package/dist/{commands → cli/commands}/build.d.mts +0 -0
- /package/dist/{commands → cli/commands}/init.d.mts +0 -0
- /package/dist/{commands → cli/commands}/utils/css-loader-dependencies.d.mts +0 -0
- /package/dist/{cli.d.mts → cli/index.d.mts} +0 -0
- /package/dist/{hooks → config}/preset/auto.d.mts +0 -0
- /package/dist/{hooks → config}/preset/utils/infer-entries.d.mts +0 -0
- /package/dist/{hooks → config}/preset/utils/overwrite-with-publish-config.d.mts +0 -0
- /package/dist/{utils → config/utils}/find-packem-file.d.mts +0 -0
package/dist/config/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var i=(e,n)=>t(e,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var f=Object.defineProperty,r=i((e,n)=>f(e,"name",{value:n,configurable:!0}),"
|
|
1
|
+
"use strict";var t=Object.defineProperty;var i=(e,n)=>t(e,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var f=Object.defineProperty,r=i((e,n)=>f(e,"name",{value:n,configurable:!0}),"o");const o=r(e=>e,"defineConfig"),d=r(e=>e,"definePreset");exports.defineConfig=o;exports.definePreset=d;
|
package/dist/config/index.d.cts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type { BuildConfig,
|
|
2
|
-
|
|
3
|
-
* Function type for dynamic build configuration.
|
|
4
|
-
* Allows configuration to be generated based on environment and mode.
|
|
5
|
-
*
|
|
6
|
-
* @param environment - The build environment (development/production)
|
|
7
|
-
* @param mode - The build mode (build/watch)
|
|
8
|
-
* @returns Build configuration object or Promise resolving to one
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export type BuildConfigFunction = (environment: Environment, mode: Mode) => BuildConfig | Promise<BuildConfig>;
|
|
13
|
-
export type { BuildConfig, BuildHooks, BuildPreset } from "../types.d.cts";
|
|
1
|
+
import type { BuildConfig, BuildConfigFunction, BuildPreset } from "../types.d.cts";
|
|
2
|
+
export type { BuildConfig, BuildConfigFunction, BuildHooks, BuildPreset } from "../types.d.cts";
|
|
14
3
|
/**
|
|
15
4
|
* Defines a build configuration for Packem.
|
|
16
5
|
* Supports both static configuration objects and dynamic configuration functions.
|
package/dist/config/index.d.mts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type { BuildConfig,
|
|
2
|
-
|
|
3
|
-
* Function type for dynamic build configuration.
|
|
4
|
-
* Allows configuration to be generated based on environment and mode.
|
|
5
|
-
*
|
|
6
|
-
* @param environment - The build environment (development/production)
|
|
7
|
-
* @param mode - The build mode (build/watch)
|
|
8
|
-
* @returns Build configuration object or Promise resolving to one
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export type BuildConfigFunction = (environment: Environment, mode: Mode) => BuildConfig | Promise<BuildConfig>;
|
|
13
|
-
export type { BuildConfig, BuildHooks, BuildPreset } from "../types.d.mts";
|
|
1
|
+
import type { BuildConfig, BuildConfigFunction, BuildPreset } from "../types.d.mts";
|
|
2
|
+
export type { BuildConfig, BuildConfigFunction, BuildHooks, BuildPreset } from "../types.d.mts";
|
|
14
3
|
/**
|
|
15
4
|
* Defines a build configuration for Packem.
|
|
16
5
|
* Supports both static configuration objects and dynamic configuration functions.
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type { BuildConfig,
|
|
2
|
-
|
|
3
|
-
* Function type for dynamic build configuration.
|
|
4
|
-
* Allows configuration to be generated based on environment and mode.
|
|
5
|
-
*
|
|
6
|
-
* @param environment - The build environment (development/production)
|
|
7
|
-
* @param mode - The build mode (build/watch)
|
|
8
|
-
* @returns Build configuration object or Promise resolving to one
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export type BuildConfigFunction = (environment: Environment, mode: Mode) => BuildConfig | Promise<BuildConfig>;
|
|
13
|
-
export type { BuildConfig, BuildHooks, BuildPreset } from "../types.d.ts";
|
|
1
|
+
import type { BuildConfig, BuildConfigFunction, BuildPreset } from "../types.d.ts";
|
|
2
|
+
export type { BuildConfig, BuildConfigFunction, BuildHooks, BuildPreset } from "../types.d.ts";
|
|
14
3
|
/**
|
|
15
4
|
* Defines a build configuration for Packem.
|
|
16
5
|
* Supports both static configuration objects and dynamic configuration functions.
|
package/dist/config/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=Object.defineProperty;var r=(e,n)=>i(e,"name",{value:n,configurable:!0});var
|
|
1
|
+
var i=Object.defineProperty;var r=(e,n)=>i(e,"name",{value:n,configurable:!0});var o=Object.defineProperty,f=r((e,n)=>o(e,"name",{value:n,configurable:!0}),"o");const a=f(e=>e,"defineConfig"),d=f(e=>e,"definePreset");export{a as defineConfig,d as definePreset};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NormalizedPackageJson } from "@visulima/package";
|
|
2
2
|
declare const loadPackageJson: (rootDirectory: string) => {
|
|
3
|
-
packageJson:
|
|
3
|
+
packageJson: NormalizedPackageJson;
|
|
4
4
|
packageJsonPath: string;
|
|
5
5
|
};
|
|
6
6
|
export default loadPackageJson;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BuildConfig, Environment, Mode } from "../../types.d.mts";
|
|
2
|
+
import type { Jiti } from "jiti";
|
|
3
|
+
declare const loadPackemConfig: (jiti: Jiti, rootDirectory: string, environment: Environment, mode: Mode, configPath?: string) => Promise<{
|
|
4
|
+
config: BuildConfig;
|
|
5
|
+
path: string;
|
|
6
|
+
}>;
|
|
7
|
+
export default loadPackemConfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NormalizedPackageJson } from "@visulima/package";
|
|
2
|
+
import type { Pail } from "@visulima/pail";
|
|
3
|
+
import type { TsConfigResult } from "@visulima/tsconfig";
|
|
4
|
+
declare const loadTsconfig: (rootDirectory: string, packageJson: NormalizedPackageJson, logger: Pail, tsconfigPath?: string) => Promise<TsConfigResult | undefined>;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export = loadTsconfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { NormalizedPackageJson } from "@visulima/package";
|
|
2
|
+
import type { Pail } from "@visulima/pail";
|
|
3
|
+
import type { TsConfigResult } from "@visulima/tsconfig";
|
|
4
|
+
declare const loadTsconfig: (rootDirectory: string, packageJson: NormalizedPackageJson, logger: Pail, tsconfigPath?: string) => Promise<TsConfigResult | undefined>;
|
|
5
|
+
export default loadTsconfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NormalizedPackageJson } from "@visulima/package";
|
|
2
|
+
import type { Pail } from "@visulima/pail";
|
|
3
|
+
import type { TsConfigResult } from "@visulima/tsconfig";
|
|
4
|
+
declare const loadTsconfig: (rootDirectory: string, packageJson: NormalizedPackageJson, logger: Pail, tsconfigPath?: string) => Promise<TsConfigResult | undefined>;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export = loadTsconfig;
|