@weapp-tailwindcss/cli 4.0.0-alpha.12 → 4.0.0-alpha.13

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.
Files changed (3) hide show
  1. package/dist/index.cjs +122 -150
  2. package/dist/index.mjs +122 -150
  3. package/package.json +4 -4
package/dist/index.cjs CHANGED
@@ -80,152 +80,104 @@ var AssetType = /* @__PURE__ */ ((AssetType2) => {
80
80
  return AssetType2;
81
81
  })(AssetType || {});
82
82
 
83
- function getDefaultExportFromCjs (x) {
84
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
85
- }
86
-
87
- /*!
88
- * isobject <https://github.com/jonschlinkert/isobject>
89
- *
90
- * Copyright (c) 2014-2017, Jon Schlinkert.
91
- * Released under the MIT License.
92
- */
93
-
94
- var isobject;
95
- var hasRequiredIsobject;
96
-
97
- function requireIsobject () {
98
- if (hasRequiredIsobject) return isobject;
99
- hasRequiredIsobject = 1;
100
-
101
- isobject = function isObject(val) {
102
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
103
- };
104
- return isobject;
105
- }
106
-
83
+ var __defProp = Object.defineProperty;
84
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
85
+
86
+ // index.ts
87
+ var isObject$1 = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
88
+ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
89
+ if (typeof options.join === "function") {
90
+ return options.join(segs);
91
+ }
92
+ return segs[0] + joinChar + segs[1];
93
+ }, "join");
94
+ var split = /* @__PURE__ */ __name((path, splitChar, options) => {
95
+ if (typeof options.split === "function") {
96
+ return options.split(path);
97
+ }
98
+ return path.split(splitChar);
99
+ }, "split");
100
+ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
101
+ if (typeof options?.isValid === "function") {
102
+ return options.isValid(key, target);
103
+ }
104
+ return true;
105
+ }, "isValid");
106
+ var isValidObject = /* @__PURE__ */ __name((v) => {
107
+ return isObject$1(v) || typeof v === "function";
108
+ }, "isValidObject");
109
+ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
110
+ if (!isObject$1(options)) {
111
+ options = { default: options };
112
+ }
113
+ if (!isValidObject(target)) {
114
+ return typeof options.default !== "undefined" ? options.default : target;
115
+ }
116
+ if (typeof path === "number") {
117
+ path = String(path);
118
+ }
119
+ const pathIsArray = Array.isArray(path);
120
+ const pathIsString = typeof path === "string";
121
+ const splitChar = options.separator || ".";
122
+ const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
123
+ if (!pathIsString && !pathIsArray) {
124
+ return target;
125
+ }
126
+ if (target[path] !== void 0) {
127
+ return isValid(path, target, options) ? target[path] : options.default;
128
+ }
129
+ const segs = pathIsArray ? path : split(path, splitChar, options);
130
+ const len = segs.length;
131
+ let idx = 0;
132
+ do {
133
+ let prop = segs[idx];
134
+ if (typeof prop !== "string") {
135
+ prop = String(prop);
136
+ }
137
+ while (prop && prop.slice(-1) === "\\") {
138
+ prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
139
+ }
140
+ if (target[prop] !== void 0) {
141
+ if (!isValid(prop, target, options)) {
142
+ return options.default;
143
+ }
144
+ target = target[prop];
145
+ } else {
146
+ let hasProp = false;
147
+ let n = idx + 1;
148
+ while (n < len) {
149
+ prop = join([prop, segs[n++]], joinChar, options);
150
+ if (hasProp = target[prop] !== void 0) {
151
+ if (!isValid(prop, target, options)) {
152
+ return options.default;
153
+ }
154
+ target = target[prop];
155
+ idx = n - 1;
156
+ break;
157
+ }
158
+ }
159
+ if (!hasProp) {
160
+ return options.default;
161
+ }
162
+ }
163
+ } while (++idx < len && isValidObject(target));
164
+ if (idx === len) {
165
+ return target;
166
+ }
167
+ return options.default;
168
+ }, "getValue");
169
+ var index_default = getValue;
107
170
  /*!
108
171
  * get-value <https://github.com/jonschlinkert/get-value>
109
172
  *
110
- * Copyright (c) 2014-2018, Jon Schlinkert.
173
+ * Copyright (c) 2014-present, Jon Schlinkert.
111
174
  * Released under the MIT License.
112
175
  */
113
176
 
114
- var getValue;
115
- var hasRequiredGetValue;
116
-
117
- function requireGetValue () {
118
- if (hasRequiredGetValue) return getValue;
119
- hasRequiredGetValue = 1;
120
- const isObject = requireIsobject();
121
-
122
- getValue = function(target, path, options) {
123
- if (!isObject(options)) {
124
- options = { default: options };
125
- }
126
-
127
- if (!isValidObject(target)) {
128
- return typeof options.default !== 'undefined' ? options.default : target;
129
- }
130
-
131
- if (typeof path === 'number') {
132
- path = String(path);
133
- }
134
-
135
- const isArray = Array.isArray(path);
136
- const isString = typeof path === 'string';
137
- const splitChar = options.separator || '.';
138
- const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
139
-
140
- if (!isString && !isArray) {
141
- return target;
142
- }
143
-
144
- if (isString && path in target) {
145
- return isValid(path, target, options) ? target[path] : options.default;
146
- }
147
-
148
- let segs = isArray ? path : split(path, splitChar, options);
149
- let len = segs.length;
150
- let idx = 0;
151
-
152
- do {
153
- let prop = segs[idx];
154
- if (typeof prop === 'number') {
155
- prop = String(prop);
156
- }
157
-
158
- while (prop && prop.slice(-1) === '\\') {
159
- prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
160
- }
161
-
162
- if (prop in target) {
163
- if (!isValid(prop, target, options)) {
164
- return options.default;
165
- }
166
-
167
- target = target[prop];
168
- } else {
169
- let hasProp = false;
170
- let n = idx + 1;
171
-
172
- while (n < len) {
173
- prop = join([prop, segs[n++]], joinChar, options);
174
-
175
- if ((hasProp = prop in target)) {
176
- if (!isValid(prop, target, options)) {
177
- return options.default;
178
- }
179
-
180
- target = target[prop];
181
- idx = n - 1;
182
- break;
183
- }
184
- }
185
-
186
- if (!hasProp) {
187
- return options.default;
188
- }
189
- }
190
- } while (++idx < len && isValidObject(target));
191
-
192
- if (idx === len) {
193
- return target;
194
- }
195
-
196
- return options.default;
197
- };
198
-
199
- function join(segs, joinChar, options) {
200
- if (typeof options.join === 'function') {
201
- return options.join(segs);
202
- }
203
- return segs[0] + joinChar + segs[1];
204
- }
205
-
206
- function split(path, splitChar, options) {
207
- if (typeof options.split === 'function') {
208
- return options.split(path);
209
- }
210
- return path.split(splitChar);
211
- }
212
-
213
- function isValid(key, target, options) {
214
- if (typeof options.isValid === 'function') {
215
- return options.isValid(key, target);
216
- }
217
- return true;
218
- }
219
-
220
- function isValidObject(val) {
221
- return isObject(val) || Array.isArray(val) || typeof val === 'function';
222
- }
223
- return getValue;
177
+ function getDefaultExportFromCjs (x) {
178
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
224
179
  }
225
180
 
226
- var getValueExports = requireGetValue();
227
- const get = /*@__PURE__*/getDefaultExportFromCjs(getValueExports);
228
-
229
181
  /*!
230
182
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
231
183
  *
@@ -249,6 +201,26 @@ function requireIsPrimitive () {
249
201
  return isPrimitive;
250
202
  }
251
203
 
204
+ /*!
205
+ * isobject <https://github.com/jonschlinkert/isobject>
206
+ *
207
+ * Copyright (c) 2014-2017, Jon Schlinkert.
208
+ * Released under the MIT License.
209
+ */
210
+
211
+ var isobject;
212
+ var hasRequiredIsobject;
213
+
214
+ function requireIsobject () {
215
+ if (hasRequiredIsobject) return isobject;
216
+ hasRequiredIsobject = 1;
217
+
218
+ isobject = function isObject(val) {
219
+ return val != null && typeof val === 'object' && Array.isArray(val) === false;
220
+ };
221
+ return isobject;
222
+ }
223
+
252
224
  /*!
253
225
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
254
226
  *
@@ -483,11 +455,11 @@ function promisify(task) {
483
455
  return Promise.all(task.map((x) => promisify(x))).then(resolve).catch(reject);
484
456
  } else {
485
457
  if (task.destroyed) {
486
- resolve(undefined);
458
+ resolve(void 0);
487
459
  return;
488
460
  }
489
461
  task.on("finish", () => {
490
- resolve(undefined);
462
+ resolve(void 0);
491
463
  }).on("error", (err) => {
492
464
  reject(err);
493
465
  });
@@ -537,7 +509,7 @@ class GlobsSet {
537
509
  }
538
510
 
539
511
  function isStream(stream, { checkOpen = true } = {}) {
540
- return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === undefined && stream.readable === undefined) && typeof stream.pipe === "function";
512
+ return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
541
513
  }
542
514
 
543
515
  function normalizePlugin(plugin) {
@@ -577,7 +549,7 @@ async function getTasks(options) {
577
549
  const enableLess = Boolean(preprocessorOptions?.less);
578
550
  function resolvePipes(plugins, type) {
579
551
  const newPlugins = gulpChain(plugins, type);
580
- if (newPlugins === undefined) {
552
+ if (newPlugins === void 0) {
581
553
  return plugins;
582
554
  }
583
555
  return newPlugins.map((x) => normalizePlugin(x)).filter((x) => x);
@@ -586,7 +558,7 @@ async function getTasks(options) {
586
558
  typescriptOptions = {
587
559
  tsConfigFileName: "tsconfig.json"
588
560
  };
589
- } else if (isObject(typescriptOptions) && typescriptOptions.tsConfigFileName === undefined) {
561
+ } else if (isObject(typescriptOptions) && typescriptOptions.tsConfigFileName === void 0) {
590
562
  typescriptOptions.tsConfigFileName = "tsconfig.json";
591
563
  }
592
564
  const enableTs = Boolean(typescriptOptions);
@@ -645,7 +617,7 @@ async function getTasks(options) {
645
617
  pipes.push(transformJs({
646
618
  babelParserOptions: !enableTs && isTs ? {
647
619
  plugins: ["typescript"]
648
- } : undefined
620
+ } : void 0
649
621
  }));
650
622
  if (loadTs) {
651
623
  pipes.push(rename__default({
@@ -698,11 +670,11 @@ async function getTasks(options) {
698
670
  if (loadSass) {
699
671
  pipes.push(sass.sync(
700
672
  // @ts-ignore
701
- typeof preprocessorOptions?.sass === "boolean" ? undefined : preprocessorOptions?.sass
673
+ typeof preprocessorOptions?.sass === "boolean" ? void 0 : preprocessorOptions?.sass
702
674
  ).on("error", sass.logError));
703
675
  }
704
676
  if (loadLess) {
705
- pipes.push(less__default(typeof preprocessorOptions?.less === "boolean" ? undefined : preprocessorOptions?.less));
677
+ pipes.push(less__default(typeof preprocessorOptions?.less === "boolean" ? void 0 : preprocessorOptions?.less));
706
678
  }
707
679
  if (postcssOptions) {
708
680
  pipes.push(postcssrc__default(postcssOptions?.plugins, postcssOptions?.options));
@@ -810,7 +782,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
810
782
  continue;
811
783
  }
812
784
  const value = baseObject[key];
813
- if (value === null || value === undefined) {
785
+ if (value === null || value === void 0) {
814
786
  continue;
815
787
  }
816
788
  if (merger && merger(object, key, value, namespace)) {
@@ -839,7 +811,7 @@ function createDefu(merger) {
839
811
  }
840
812
  const defu = createDefu();
841
813
 
842
- const version = "4.0.0-alpha.12";
814
+ const version = "4.0.0-alpha.13";
843
815
 
844
816
  async function createBuilder(options) {
845
817
  let postcssOptionsFromConfig;
@@ -878,7 +850,7 @@ async function createBuilder(options) {
878
850
  debug("del end");
879
851
  }
880
852
  return {
881
- watcher: undefined,
853
+ watcher: void 0,
882
854
  async build() {
883
855
  if (clean2) {
884
856
  await doClean();
@@ -981,7 +953,7 @@ function updateProjectConfig(options) {
981
953
  set(projectConfig, "miniprogramRoot", "dist/");
982
954
  set(projectConfig, "srcMiniprogramRoot", "dist/");
983
955
  set(projectConfig, "setting.packNpmManually", true);
984
- if (Array.isArray(get(projectConfig, "setting.packNpmRelationList"))) {
956
+ if (Array.isArray(index_default(projectConfig, "setting.packNpmRelationList"))) {
985
957
  const x = projectConfig.setting.packNpmRelationList.find(
986
958
  (x2) => x2.packageJsonPath === "./package.json" && x2.miniprogramNpmDistDir === "./dist"
987
959
  );
package/dist/index.mjs CHANGED
@@ -63,152 +63,104 @@ var AssetType = /* @__PURE__ */ ((AssetType2) => {
63
63
  return AssetType2;
64
64
  })(AssetType || {});
65
65
 
66
- function getDefaultExportFromCjs (x) {
67
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
68
- }
69
-
70
- /*!
71
- * isobject <https://github.com/jonschlinkert/isobject>
72
- *
73
- * Copyright (c) 2014-2017, Jon Schlinkert.
74
- * Released under the MIT License.
75
- */
76
-
77
- var isobject;
78
- var hasRequiredIsobject;
79
-
80
- function requireIsobject () {
81
- if (hasRequiredIsobject) return isobject;
82
- hasRequiredIsobject = 1;
83
-
84
- isobject = function isObject(val) {
85
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
86
- };
87
- return isobject;
88
- }
89
-
66
+ var __defProp = Object.defineProperty;
67
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
68
+
69
+ // index.ts
70
+ var isObject$1 = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
71
+ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
72
+ if (typeof options.join === "function") {
73
+ return options.join(segs);
74
+ }
75
+ return segs[0] + joinChar + segs[1];
76
+ }, "join");
77
+ var split = /* @__PURE__ */ __name((path, splitChar, options) => {
78
+ if (typeof options.split === "function") {
79
+ return options.split(path);
80
+ }
81
+ return path.split(splitChar);
82
+ }, "split");
83
+ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
84
+ if (typeof options?.isValid === "function") {
85
+ return options.isValid(key, target);
86
+ }
87
+ return true;
88
+ }, "isValid");
89
+ var isValidObject = /* @__PURE__ */ __name((v) => {
90
+ return isObject$1(v) || typeof v === "function";
91
+ }, "isValidObject");
92
+ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
93
+ if (!isObject$1(options)) {
94
+ options = { default: options };
95
+ }
96
+ if (!isValidObject(target)) {
97
+ return typeof options.default !== "undefined" ? options.default : target;
98
+ }
99
+ if (typeof path === "number") {
100
+ path = String(path);
101
+ }
102
+ const pathIsArray = Array.isArray(path);
103
+ const pathIsString = typeof path === "string";
104
+ const splitChar = options.separator || ".";
105
+ const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
106
+ if (!pathIsString && !pathIsArray) {
107
+ return target;
108
+ }
109
+ if (target[path] !== void 0) {
110
+ return isValid(path, target, options) ? target[path] : options.default;
111
+ }
112
+ const segs = pathIsArray ? path : split(path, splitChar, options);
113
+ const len = segs.length;
114
+ let idx = 0;
115
+ do {
116
+ let prop = segs[idx];
117
+ if (typeof prop !== "string") {
118
+ prop = String(prop);
119
+ }
120
+ while (prop && prop.slice(-1) === "\\") {
121
+ prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
122
+ }
123
+ if (target[prop] !== void 0) {
124
+ if (!isValid(prop, target, options)) {
125
+ return options.default;
126
+ }
127
+ target = target[prop];
128
+ } else {
129
+ let hasProp = false;
130
+ let n = idx + 1;
131
+ while (n < len) {
132
+ prop = join([prop, segs[n++]], joinChar, options);
133
+ if (hasProp = target[prop] !== void 0) {
134
+ if (!isValid(prop, target, options)) {
135
+ return options.default;
136
+ }
137
+ target = target[prop];
138
+ idx = n - 1;
139
+ break;
140
+ }
141
+ }
142
+ if (!hasProp) {
143
+ return options.default;
144
+ }
145
+ }
146
+ } while (++idx < len && isValidObject(target));
147
+ if (idx === len) {
148
+ return target;
149
+ }
150
+ return options.default;
151
+ }, "getValue");
152
+ var index_default = getValue;
90
153
  /*!
91
154
  * get-value <https://github.com/jonschlinkert/get-value>
92
155
  *
93
- * Copyright (c) 2014-2018, Jon Schlinkert.
156
+ * Copyright (c) 2014-present, Jon Schlinkert.
94
157
  * Released under the MIT License.
95
158
  */
96
159
 
97
- var getValue;
98
- var hasRequiredGetValue;
99
-
100
- function requireGetValue () {
101
- if (hasRequiredGetValue) return getValue;
102
- hasRequiredGetValue = 1;
103
- const isObject = requireIsobject();
104
-
105
- getValue = function(target, path, options) {
106
- if (!isObject(options)) {
107
- options = { default: options };
108
- }
109
-
110
- if (!isValidObject(target)) {
111
- return typeof options.default !== 'undefined' ? options.default : target;
112
- }
113
-
114
- if (typeof path === 'number') {
115
- path = String(path);
116
- }
117
-
118
- const isArray = Array.isArray(path);
119
- const isString = typeof path === 'string';
120
- const splitChar = options.separator || '.';
121
- const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
122
-
123
- if (!isString && !isArray) {
124
- return target;
125
- }
126
-
127
- if (isString && path in target) {
128
- return isValid(path, target, options) ? target[path] : options.default;
129
- }
130
-
131
- let segs = isArray ? path : split(path, splitChar, options);
132
- let len = segs.length;
133
- let idx = 0;
134
-
135
- do {
136
- let prop = segs[idx];
137
- if (typeof prop === 'number') {
138
- prop = String(prop);
139
- }
140
-
141
- while (prop && prop.slice(-1) === '\\') {
142
- prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
143
- }
144
-
145
- if (prop in target) {
146
- if (!isValid(prop, target, options)) {
147
- return options.default;
148
- }
149
-
150
- target = target[prop];
151
- } else {
152
- let hasProp = false;
153
- let n = idx + 1;
154
-
155
- while (n < len) {
156
- prop = join([prop, segs[n++]], joinChar, options);
157
-
158
- if ((hasProp = prop in target)) {
159
- if (!isValid(prop, target, options)) {
160
- return options.default;
161
- }
162
-
163
- target = target[prop];
164
- idx = n - 1;
165
- break;
166
- }
167
- }
168
-
169
- if (!hasProp) {
170
- return options.default;
171
- }
172
- }
173
- } while (++idx < len && isValidObject(target));
174
-
175
- if (idx === len) {
176
- return target;
177
- }
178
-
179
- return options.default;
180
- };
181
-
182
- function join(segs, joinChar, options) {
183
- if (typeof options.join === 'function') {
184
- return options.join(segs);
185
- }
186
- return segs[0] + joinChar + segs[1];
187
- }
188
-
189
- function split(path, splitChar, options) {
190
- if (typeof options.split === 'function') {
191
- return options.split(path);
192
- }
193
- return path.split(splitChar);
194
- }
195
-
196
- function isValid(key, target, options) {
197
- if (typeof options.isValid === 'function') {
198
- return options.isValid(key, target);
199
- }
200
- return true;
201
- }
202
-
203
- function isValidObject(val) {
204
- return isObject(val) || Array.isArray(val) || typeof val === 'function';
205
- }
206
- return getValue;
160
+ function getDefaultExportFromCjs (x) {
161
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
207
162
  }
208
163
 
209
- var getValueExports = requireGetValue();
210
- const get = /*@__PURE__*/getDefaultExportFromCjs(getValueExports);
211
-
212
164
  /*!
213
165
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
214
166
  *
@@ -232,6 +184,26 @@ function requireIsPrimitive () {
232
184
  return isPrimitive;
233
185
  }
234
186
 
187
+ /*!
188
+ * isobject <https://github.com/jonschlinkert/isobject>
189
+ *
190
+ * Copyright (c) 2014-2017, Jon Schlinkert.
191
+ * Released under the MIT License.
192
+ */
193
+
194
+ var isobject;
195
+ var hasRequiredIsobject;
196
+
197
+ function requireIsobject () {
198
+ if (hasRequiredIsobject) return isobject;
199
+ hasRequiredIsobject = 1;
200
+
201
+ isobject = function isObject(val) {
202
+ return val != null && typeof val === 'object' && Array.isArray(val) === false;
203
+ };
204
+ return isobject;
205
+ }
206
+
235
207
  /*!
236
208
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
237
209
  *
@@ -466,11 +438,11 @@ function promisify(task) {
466
438
  return Promise.all(task.map((x) => promisify(x))).then(resolve).catch(reject);
467
439
  } else {
468
440
  if (task.destroyed) {
469
- resolve(undefined);
441
+ resolve(void 0);
470
442
  return;
471
443
  }
472
444
  task.on("finish", () => {
473
- resolve(undefined);
445
+ resolve(void 0);
474
446
  }).on("error", (err) => {
475
447
  reject(err);
476
448
  });
@@ -520,7 +492,7 @@ class GlobsSet {
520
492
  }
521
493
 
522
494
  function isStream(stream, { checkOpen = true } = {}) {
523
- return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === undefined && stream.readable === undefined) && typeof stream.pipe === "function";
495
+ return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
524
496
  }
525
497
 
526
498
  function normalizePlugin(plugin) {
@@ -560,7 +532,7 @@ async function getTasks(options) {
560
532
  const enableLess = Boolean(preprocessorOptions?.less);
561
533
  function resolvePipes(plugins, type) {
562
534
  const newPlugins = gulpChain(plugins, type);
563
- if (newPlugins === undefined) {
535
+ if (newPlugins === void 0) {
564
536
  return plugins;
565
537
  }
566
538
  return newPlugins.map((x) => normalizePlugin(x)).filter((x) => x);
@@ -569,7 +541,7 @@ async function getTasks(options) {
569
541
  typescriptOptions = {
570
542
  tsConfigFileName: "tsconfig.json"
571
543
  };
572
- } else if (isObject(typescriptOptions) && typescriptOptions.tsConfigFileName === undefined) {
544
+ } else if (isObject(typescriptOptions) && typescriptOptions.tsConfigFileName === void 0) {
573
545
  typescriptOptions.tsConfigFileName = "tsconfig.json";
574
546
  }
575
547
  const enableTs = Boolean(typescriptOptions);
@@ -628,7 +600,7 @@ async function getTasks(options) {
628
600
  pipes.push(transformJs({
629
601
  babelParserOptions: !enableTs && isTs ? {
630
602
  plugins: ["typescript"]
631
- } : undefined
603
+ } : void 0
632
604
  }));
633
605
  if (loadTs) {
634
606
  pipes.push(rename({
@@ -681,11 +653,11 @@ async function getTasks(options) {
681
653
  if (loadSass) {
682
654
  pipes.push(sass.sync(
683
655
  // @ts-ignore
684
- typeof preprocessorOptions?.sass === "boolean" ? undefined : preprocessorOptions?.sass
656
+ typeof preprocessorOptions?.sass === "boolean" ? void 0 : preprocessorOptions?.sass
685
657
  ).on("error", sass.logError));
686
658
  }
687
659
  if (loadLess) {
688
- pipes.push(less(typeof preprocessorOptions?.less === "boolean" ? undefined : preprocessorOptions?.less));
660
+ pipes.push(less(typeof preprocessorOptions?.less === "boolean" ? void 0 : preprocessorOptions?.less));
689
661
  }
690
662
  if (postcssOptions) {
691
663
  pipes.push(postcssrc(postcssOptions?.plugins, postcssOptions?.options));
@@ -793,7 +765,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
793
765
  continue;
794
766
  }
795
767
  const value = baseObject[key];
796
- if (value === null || value === undefined) {
768
+ if (value === null || value === void 0) {
797
769
  continue;
798
770
  }
799
771
  if (merger && merger(object, key, value, namespace)) {
@@ -822,7 +794,7 @@ function createDefu(merger) {
822
794
  }
823
795
  const defu = createDefu();
824
796
 
825
- const version = "4.0.0-alpha.12";
797
+ const version = "4.0.0-alpha.13";
826
798
 
827
799
  async function createBuilder(options) {
828
800
  let postcssOptionsFromConfig;
@@ -861,7 +833,7 @@ async function createBuilder(options) {
861
833
  debug("del end");
862
834
  }
863
835
  return {
864
- watcher: undefined,
836
+ watcher: void 0,
865
837
  async build() {
866
838
  if (clean2) {
867
839
  await doClean();
@@ -964,7 +936,7 @@ function updateProjectConfig(options) {
964
936
  set(projectConfig, "miniprogramRoot", "dist/");
965
937
  set(projectConfig, "srcMiniprogramRoot", "dist/");
966
938
  set(projectConfig, "setting.packNpmManually", true);
967
- if (Array.isArray(get(projectConfig, "setting.packNpmRelationList"))) {
939
+ if (Array.isArray(index_default(projectConfig, "setting.packNpmRelationList"))) {
968
940
  const x = projectConfig.setting.packNpmRelationList.find(
969
941
  (x2) => x2.packageJsonPath === "./package.json" && x2.miniprogramNpmDistDir === "./dist"
970
942
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/cli",
3
- "version": "4.0.0-alpha.12",
3
+ "version": "4.0.0-alpha.13",
4
4
  "description": "The cli of weapp-tailwindcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "less": "*",
40
40
  "sass": "*",
41
41
  "typescript": "*",
42
- "weapp-tailwindcss": "4.0.0-alpha.12"
42
+ "weapp-tailwindcss": "4.0.0-alpha.13"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "less": {
@@ -64,11 +64,11 @@
64
64
  "gulp-plumber": "^1.2.1",
65
65
  "gulp-postcss": "^10.0.0",
66
66
  "gulp-rename": "^2.0.0",
67
- "gulp-sass": "^5.1.0",
67
+ "gulp-sass": "^6.0.0",
68
68
  "gulp-typescript": "6.0.0-alpha.1",
69
69
  "local-pkg": "^1.0.0",
70
70
  "picocolors": "^1.1.1",
71
- "postcss": "^8.5.1",
71
+ "postcss": "^8.5.2",
72
72
  "postcss-load-config": "^6.0.1",
73
73
  "postcss-scss": "^4.0.9"
74
74
  },