@casterly/utils
Advanced tools
Comparing version 0.9.0-alpha.11 to 0.9.0-alpha.12
@@ -46,6 +46,6 @@ "use strict"; | ||
exports.appPublic = resolveApp('public'); | ||
exports.appServerEntry = exports.resolveModule(resolveApp, 'src/app-server'); | ||
exports.appBrowserEntry = exports.resolveModule(resolveApp, 'src/app-browser'); | ||
exports.appRoutesJs = exports.resolveModule(resolveApp, 'src/routes'); | ||
exports.appLoaderRuntime = exports.resolveModule(resolveApp, 'src/loader'); | ||
exports.appServerEntry = (0, exports.resolveModule)(resolveApp, 'src/app-server'); | ||
exports.appBrowserEntry = (0, exports.resolveModule)(resolveApp, 'src/app-browser'); | ||
exports.appRoutesJs = (0, exports.resolveModule)(resolveApp, 'src/routes'); | ||
exports.appLoaderRuntime = (0, exports.resolveModule)(resolveApp, 'src/loader'); | ||
exports.appPackageJson = resolveApp('package.json'); | ||
@@ -52,0 +52,0 @@ exports.appSrc = resolveApp('src'); |
@@ -22,4 +22,4 @@ "use strict"; | ||
const loadUserConfig = (dir) => { | ||
const filePath = path_1.join(dir, constants_1.CONFIG_FILE); | ||
if (fileExists_1.fileExistsSync(filePath)) { | ||
const filePath = (0, path_1.join)(dir, constants_1.CONFIG_FILE); | ||
if ((0, fileExists_1.fileExistsSync)(filePath)) { | ||
let userConfig = require(filePath); | ||
@@ -32,5 +32,5 @@ if (typeof userConfig === 'undefined') { | ||
} | ||
const configFileBasename = path_1.basename(constants_1.CONFIG_FILE, path_1.extname(constants_1.CONFIG_FILE)); | ||
const configFileBasename = (0, path_1.basename)(constants_1.CONFIG_FILE, (0, path_1.extname)(constants_1.CONFIG_FILE)); | ||
const configWithDifferentExtension = ['.tsx', '.ts', '.jsx', '.json'] | ||
.map((ext) => path_1.join(dir, configFileBasename + ext)) | ||
.map((ext) => (0, path_1.join)(dir, configFileBasename + ext)) | ||
.map(fileExists_1.fileExistsSync) | ||
@@ -44,2 +44,2 @@ .some(Boolean); | ||
exports.loadUserConfig = loadUserConfig; | ||
exports.userConfig = exports.loadUserConfig(fs_1.default.realpathSync(process.cwd())); | ||
exports.userConfig = (0, exports.loadUserConfig)(fs_1.default.realpathSync(process.cwd())); |
{ | ||
"name": "@casterly/utils", | ||
"version": "0.9.0-alpha.11", | ||
"version": "0.9.0-alpha.12", | ||
"description": "Common utilities used throughout Casterly packages", | ||
@@ -40,3 +40,3 @@ "author": "Lucas Cordeiro <ecdb.lucas@gmail.com>", | ||
}, | ||
"gitHead": "381cb03f7180821192c33c7391505535cbba77b3" | ||
"gitHead": "fb8674c9ca054f4d9a65103f21a1369a5a20a007" | ||
} |
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
15762