@casterly/utils
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -16,1 +16,2 @@ export declare const STATIC_FOLDER = "static"; | ||
export declare const CONFIG_FILE = "casterly.config.js"; | ||
export declare const WEBPACK_CONFIG_FILE = "webpack.config.js"; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CONFIG_FILE = exports.BUILD_ID_FILE = exports.ROUTES_MANIFEST_FILE = exports.STATIC_ENTRYPOINTS_ROUTES_ASSETS = exports.STATIC_ENTRYPOINTS_ROUTES = exports.STATIC_RUNTIME_HOT = exports.STATIC_RUNTIME_WEBPACK = exports.STATIC_RUNTIME_MAIN = exports.STATIC_ASSETS_PATH = exports.STATIC_ENTRYPOINTS_PATH = exports.STATIC_MEDIA_PATH = exports.STATIC_CHUNKS_PATH = exports.STATIC_WEBPACK_PATH = exports.STATIC_RUNTIME_PATH = exports.STATIC_FOLDER = void 0; | ||
exports.WEBPACK_CONFIG_FILE = exports.CONFIG_FILE = exports.BUILD_ID_FILE = exports.ROUTES_MANIFEST_FILE = exports.STATIC_ENTRYPOINTS_ROUTES_ASSETS = exports.STATIC_ENTRYPOINTS_ROUTES = exports.STATIC_RUNTIME_HOT = exports.STATIC_RUNTIME_WEBPACK = exports.STATIC_RUNTIME_MAIN = exports.STATIC_ASSETS_PATH = exports.STATIC_ENTRYPOINTS_PATH = exports.STATIC_MEDIA_PATH = exports.STATIC_CHUNKS_PATH = exports.STATIC_WEBPACK_PATH = exports.STATIC_RUNTIME_PATH = exports.STATIC_FOLDER = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -24,1 +24,2 @@ exports.STATIC_FOLDER = 'static'; | ||
exports.CONFIG_FILE = 'casterly.config.js'; | ||
exports.WEBPACK_CONFIG_FILE = 'webpack.config.js'; |
@@ -1,2 +0,1 @@ | ||
import type { Configuration } from 'webpack'; | ||
declare type RecursiveRequired<T> = T extends (...args: infer A) => infer R ? (...args: A) => R : T extends object ? { | ||
@@ -9,6 +8,2 @@ [K in keyof T]-?: RecursiveRequired<T[K]>; | ||
export interface CasterlyConfig { | ||
webpack?: (config: Configuration, options: { | ||
isServer: boolean; | ||
dev: boolean; | ||
}) => Configuration; | ||
buildServer?: BuildServerConfig; | ||
@@ -15,0 +10,0 @@ buildFolder?: string; |
@@ -12,3 +12,2 @@ "use strict"; | ||
exports.defaultConfig = { | ||
webpack: (config) => config, | ||
buildServer: { | ||
@@ -15,0 +14,0 @@ port: 8081, |
{ | ||
"name": "@casterly/utils", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Common utilities used throughout Casterly packages", | ||
@@ -39,6 +39,5 @@ "author": "Lucas Cordeiro <ecdb.lucas@gmail.com>", | ||
"@types/node": "^14.14.10", | ||
"rimraf": "^3.0.0", | ||
"webpack": "^5.10.0" | ||
"rimraf": "^3.0.0" | ||
}, | ||
"gitHead": "3ba262954e035de15b33ff230d396c1297c14fe5" | ||
"gitHead": "5039b83afa7457891c41779c82cb48c3f6d29f3b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
14998
264