@akanjs/config 0.9.32 → 0.9.34
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/cjs/src/akanConfig.js +3 -3
- package/esm/src/akanConfig.js +4 -4
- package/package.json +1 -1
- package/src/akanConfig.d.ts +1 -1
package/cjs/src/akanConfig.js
CHANGED
|
@@ -35,10 +35,10 @@ __export(akanConfig_exports, {
|
|
|
35
35
|
makeLibConfig: () => makeLibConfig
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(akanConfig_exports);
|
|
38
|
-
var import_config = require("@akanjs/config");
|
|
39
38
|
var import_fs = __toESM(require("fs"));
|
|
40
39
|
var import_path = __toESM(require("path"));
|
|
41
40
|
var import_nextConfig = require("./nextConfig");
|
|
41
|
+
var import_types = require("./types");
|
|
42
42
|
const makeAppConfig = (config, props) => {
|
|
43
43
|
const { name, repoName, serveDomain, env, command = "build" } = props;
|
|
44
44
|
return {
|
|
@@ -123,7 +123,7 @@ const getDockerImageScript = (image, defaultImage) => {
|
|
|
123
123
|
if (typeof image === "string")
|
|
124
124
|
return `FROM ${image}`;
|
|
125
125
|
else
|
|
126
|
-
return
|
|
126
|
+
return import_types.archs.map((arch) => `FROM ${image[arch] ?? defaultImage} AS ${arch}`).join("\n");
|
|
127
127
|
};
|
|
128
128
|
const makeDockerfile = (type, config, props) => {
|
|
129
129
|
const { name, repoName, serveDomain, env } = props;
|
|
@@ -175,7 +175,7 @@ WORKDIR /workspace
|
|
|
175
175
|
COPY ./package.json ./package.json
|
|
176
176
|
RUN npx pnpm i --prod
|
|
177
177
|
COPY . .
|
|
178
|
-
ENV PORT
|
|
178
|
+
ENV PORT=4200
|
|
179
179
|
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
180
180
|
ENV NEXT_PUBLIC_REPO_NAME=${repoName}
|
|
181
181
|
ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
package/esm/src/akanConfig.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
archs
|
|
3
|
-
} from "@akanjs/config";
|
|
4
1
|
import fs from "fs";
|
|
5
2
|
import path from "path";
|
|
6
3
|
import { withBase } from "./nextConfig";
|
|
4
|
+
import {
|
|
5
|
+
archs
|
|
6
|
+
} from "./types";
|
|
7
7
|
const makeAppConfig = (config, props) => {
|
|
8
8
|
const { name, repoName, serveDomain, env, command = "build" } = props;
|
|
9
9
|
return {
|
|
@@ -140,7 +140,7 @@ WORKDIR /workspace
|
|
|
140
140
|
COPY ./package.json ./package.json
|
|
141
141
|
RUN npx pnpm i --prod
|
|
142
142
|
COPY . .
|
|
143
|
-
ENV PORT
|
|
143
|
+
ENV PORT=4200
|
|
144
144
|
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
145
145
|
ENV NEXT_PUBLIC_REPO_NAME=${repoName}
|
|
146
146
|
ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
package/package.json
CHANGED
package/src/akanConfig.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AppConfig, type AppConfigResult, type DeepPartial, type DockerConfig, type LibConfigResult, type RunnerProps } from "@akanjs/config";
|
|
2
1
|
import type { NextConfig } from "next";
|
|
2
|
+
import { type AppConfig, type AppConfigResult, type DeepPartial, type DockerConfig, type LibConfigResult, type RunnerProps } from "./types";
|
|
3
3
|
export declare const makeAppConfig: (config: DeepPartial<AppConfigResult>, props: RunnerProps) => AppConfigResult;
|
|
4
4
|
export declare const getAppConfig: (appRoot: string, props: RunnerProps) => Promise<AppConfigResult>;
|
|
5
5
|
export declare const makeLibConfig: (config: DeepPartial<LibConfigResult>, props: RunnerProps) => LibConfigResult;
|