Fix missing exports
This commit is contained in:
parent
7f608ad8ad
commit
590de7a67b
@ -43,7 +43,7 @@
|
|||||||
"dist/bin/*.node",
|
"dist/bin/*.node",
|
||||||
"dist/bin/shared/constants.js",
|
"dist/bin/shared/constants.js",
|
||||||
"dist/bin/shared/customHandler.js",
|
"dist/bin/shared/customHandler.js",
|
||||||
"dist/bin/shared/*.d.ts",
|
"dist/bin/*.d.ts",
|
||||||
"dist/bin/shared/*.js.map",
|
"dist/bin/shared/*.js.map",
|
||||||
"!dist/vite-plugin/",
|
"!dist/vite-plugin/",
|
||||||
"dist/vite-plugin/index.js",
|
"dist/vite-plugin/index.js",
|
||||||
|
@ -23,7 +23,7 @@ import { objectEntries } from "tsafe/objectEntries";
|
|||||||
import { type ThemeType } from "./constants";
|
import { type ThemeType } from "./constants";
|
||||||
import { id } from "tsafe/id";
|
import { id } from "tsafe/id";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import { getProxyFetchOptions, type ProxyFetchOptions } from "../tools/fetchProxyOptions";
|
import { getProxyFetchOptions, type FetchOptionsLike } from "../tools/fetchProxyOptions";
|
||||||
import { is } from "tsafe/is";
|
import { is } from "tsafe/is";
|
||||||
|
|
||||||
export type BuildContext = {
|
export type BuildContext = {
|
||||||
@ -42,7 +42,7 @@ export type BuildContext = {
|
|||||||
* In this case the urlPathname will be "/my-app/" */
|
* In this case the urlPathname will be "/my-app/" */
|
||||||
urlPathname: string | undefined;
|
urlPathname: string | undefined;
|
||||||
assetsDirPath: string;
|
assetsDirPath: string;
|
||||||
fetchOptions: ProxyFetchOptions;
|
fetchOptions: FetchOptionsLike;
|
||||||
kcContextExclusionsFtlCode: string | undefined;
|
kcContextExclusionsFtlCode: string | undefined;
|
||||||
environmentVariables: { name: string; default: string }[];
|
environmentVariables: { name: string; default: string }[];
|
||||||
themeSrcDirPath: string;
|
themeSrcDirPath: string;
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
import { type FetchOptions } from "make-fetch-happen";
|
|
||||||
import * as child_process from "child_process";
|
import * as child_process from "child_process";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import { exclude } from "tsafe/exclude";
|
import { exclude } from "tsafe/exclude";
|
||||||
|
|
||||||
export type ProxyFetchOptions = Pick<
|
export type FetchOptionsLike = {
|
||||||
FetchOptions,
|
proxy: string | undefined;
|
||||||
"proxy" | "noProxy" | "strictSSL" | "cert" | "ca"
|
noProxy: string | string[];
|
||||||
>;
|
strictSSL: boolean;
|
||||||
|
cert: string | string[] | undefined;
|
||||||
|
ca: string[] | undefined;
|
||||||
|
};
|
||||||
|
|
||||||
export function getProxyFetchOptions(params: {
|
export function getProxyFetchOptions(params: {
|
||||||
npmConfigGetCwd: string;
|
npmConfigGetCwd: string;
|
||||||
}): ProxyFetchOptions {
|
}): FetchOptionsLike {
|
||||||
const { npmConfigGetCwd } = params;
|
const { npmConfigGetCwd } = params;
|
||||||
|
|
||||||
const cfg = (() => {
|
const cfg = (() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user