@mekari/pixel3-postcss 0.0.7-dev.0 → 0.0.7-dev.1
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/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -122,12 +122,14 @@ function mergeConfig(obj1, obj2) {
|
|
|
122
122
|
return { ...obj1, ...tempObj };
|
|
123
123
|
}
|
|
124
124
|
var createConfigFile = (filePath, options, packageManager) => {
|
|
125
|
-
const restDefaultConfig = defaultConfig2;
|
|
125
|
+
const restDefaultConfig = { ...defaultConfig2 };
|
|
126
126
|
if (packageManager) {
|
|
127
127
|
const pixelDir = path.dirname(findRealModulePath("@mekari/pixel3"));
|
|
128
|
-
|
|
128
|
+
const extend = `${pixelDir}/**/dist/**/*.{js,mjs}`;
|
|
129
|
+
const finalInclude = [...restDefaultConfig.include, extend];
|
|
130
|
+
restDefaultConfig.include = finalInclude;
|
|
129
131
|
}
|
|
130
|
-
const configs = mergeConfig(
|
|
132
|
+
const configs = mergeConfig(restDefaultConfig, options);
|
|
131
133
|
const data = "export default" + JSON.stringify(configs, null, 2);
|
|
132
134
|
try {
|
|
133
135
|
fs.writeFileSync(filePath, data, "utf-8");
|
package/dist/index.mjs
CHANGED
|
@@ -114,12 +114,14 @@ var init_create_config = __esm({
|
|
|
114
114
|
path = __require("path");
|
|
115
115
|
({ defaultConfig: defaultConfig2 } = (init_default_config(), __toCommonJS(default_config_exports)));
|
|
116
116
|
createConfigFile = (filePath, options, packageManager) => {
|
|
117
|
-
const restDefaultConfig = defaultConfig2;
|
|
117
|
+
const restDefaultConfig = { ...defaultConfig2 };
|
|
118
118
|
if (packageManager) {
|
|
119
119
|
const pixelDir = path.dirname(findRealModulePath("@mekari/pixel3"));
|
|
120
|
-
|
|
120
|
+
const extend = `${pixelDir}/**/dist/**/*.{js,mjs}`;
|
|
121
|
+
const finalInclude = [...restDefaultConfig.include, extend];
|
|
122
|
+
restDefaultConfig.include = finalInclude;
|
|
121
123
|
}
|
|
122
|
-
const configs = mergeConfig(
|
|
124
|
+
const configs = mergeConfig(restDefaultConfig, options);
|
|
123
125
|
const data = "export default" + JSON.stringify(configs, null, 2);
|
|
124
126
|
try {
|
|
125
127
|
fs.writeFileSync(filePath, data, "utf-8");
|