@modern-js/repo-generator 1.3.2 → 1.3.3

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 (2) hide show
  1. package/dist/js/node/main.js +1001 -21
  2. package/package.json +2 -1
@@ -42877,6 +42877,953 @@ function patch (fs) {
42877
42877
  }
42878
42878
 
42879
42879
 
42880
+ /***/ }),
42881
+
42882
+ /***/ 83584:
42883
+ /***/ ((module) => {
42884
+
42885
+ "use strict";
42886
+
42887
+
42888
+ module.exports = clone
42889
+
42890
+ var getPrototypeOf = Object.getPrototypeOf || function (obj) {
42891
+ return obj.__proto__
42892
+ }
42893
+
42894
+ function clone (obj) {
42895
+ if (obj === null || typeof obj !== 'object')
42896
+ return obj
42897
+
42898
+ if (obj instanceof Object)
42899
+ var copy = { __proto__: getPrototypeOf(obj) }
42900
+ else
42901
+ var copy = Object.create(null)
42902
+
42903
+ Object.getOwnPropertyNames(obj).forEach(function (key) {
42904
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
42905
+ })
42906
+
42907
+ return copy
42908
+ }
42909
+
42910
+
42911
+ /***/ }),
42912
+
42913
+ /***/ 19677:
42914
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
42915
+
42916
+ var fs = __webpack_require__(57147)
42917
+ var polyfills = __webpack_require__(18187)
42918
+ var legacy = __webpack_require__(15601)
42919
+ var clone = __webpack_require__(83584)
42920
+
42921
+ var util = __webpack_require__(73837)
42922
+
42923
+ /* istanbul ignore next - node 0.x polyfill */
42924
+ var gracefulQueue
42925
+ var previousSymbol
42926
+
42927
+ /* istanbul ignore else - node 0.x polyfill */
42928
+ if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
42929
+ gracefulQueue = Symbol.for('graceful-fs.queue')
42930
+ // This is used in testing by future versions
42931
+ previousSymbol = Symbol.for('graceful-fs.previous')
42932
+ } else {
42933
+ gracefulQueue = '___graceful-fs.queue'
42934
+ previousSymbol = '___graceful-fs.previous'
42935
+ }
42936
+
42937
+ function noop () {}
42938
+
42939
+ function publishQueue(context, queue) {
42940
+ Object.defineProperty(context, gracefulQueue, {
42941
+ get: function() {
42942
+ return queue
42943
+ }
42944
+ })
42945
+ }
42946
+
42947
+ var debug = noop
42948
+ if (util.debuglog)
42949
+ debug = util.debuglog('gfs4')
42950
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
42951
+ debug = function() {
42952
+ var m = util.format.apply(util, arguments)
42953
+ m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
42954
+ console.error(m)
42955
+ }
42956
+
42957
+ // Once time initialization
42958
+ if (!fs[gracefulQueue]) {
42959
+ // This queue can be shared by multiple loaded instances
42960
+ var queue = global[gracefulQueue] || []
42961
+ publishQueue(fs, queue)
42962
+
42963
+ // Patch fs.close/closeSync to shared queue version, because we need
42964
+ // to retry() whenever a close happens *anywhere* in the program.
42965
+ // This is essential when multiple graceful-fs instances are
42966
+ // in play at the same time.
42967
+ fs.close = (function (fs$close) {
42968
+ function close (fd, cb) {
42969
+ return fs$close.call(fs, fd, function (err) {
42970
+ // This function uses the graceful-fs shared queue
42971
+ if (!err) {
42972
+ resetQueue()
42973
+ }
42974
+
42975
+ if (typeof cb === 'function')
42976
+ cb.apply(this, arguments)
42977
+ })
42978
+ }
42979
+
42980
+ Object.defineProperty(close, previousSymbol, {
42981
+ value: fs$close
42982
+ })
42983
+ return close
42984
+ })(fs.close)
42985
+
42986
+ fs.closeSync = (function (fs$closeSync) {
42987
+ function closeSync (fd) {
42988
+ // This function uses the graceful-fs shared queue
42989
+ fs$closeSync.apply(fs, arguments)
42990
+ resetQueue()
42991
+ }
42992
+
42993
+ Object.defineProperty(closeSync, previousSymbol, {
42994
+ value: fs$closeSync
42995
+ })
42996
+ return closeSync
42997
+ })(fs.closeSync)
42998
+
42999
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
43000
+ process.on('exit', function() {
43001
+ debug(fs[gracefulQueue])
43002
+ __webpack_require__(39491).equal(fs[gracefulQueue].length, 0)
43003
+ })
43004
+ }
43005
+ }
43006
+
43007
+ if (!global[gracefulQueue]) {
43008
+ publishQueue(global, fs[gracefulQueue]);
43009
+ }
43010
+
43011
+ module.exports = patch(clone(fs))
43012
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
43013
+ module.exports = patch(fs)
43014
+ fs.__patched = true;
43015
+ }
43016
+
43017
+ function patch (fs) {
43018
+ // Everything that references the open() function needs to be in here
43019
+ polyfills(fs)
43020
+ fs.gracefulify = patch
43021
+
43022
+ fs.createReadStream = createReadStream
43023
+ fs.createWriteStream = createWriteStream
43024
+ var fs$readFile = fs.readFile
43025
+ fs.readFile = readFile
43026
+ function readFile (path, options, cb) {
43027
+ if (typeof options === 'function')
43028
+ cb = options, options = null
43029
+
43030
+ return go$readFile(path, options, cb)
43031
+
43032
+ function go$readFile (path, options, cb, startTime) {
43033
+ return fs$readFile(path, options, function (err) {
43034
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43035
+ enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
43036
+ else {
43037
+ if (typeof cb === 'function')
43038
+ cb.apply(this, arguments)
43039
+ }
43040
+ })
43041
+ }
43042
+ }
43043
+
43044
+ var fs$writeFile = fs.writeFile
43045
+ fs.writeFile = writeFile
43046
+ function writeFile (path, data, options, cb) {
43047
+ if (typeof options === 'function')
43048
+ cb = options, options = null
43049
+
43050
+ return go$writeFile(path, data, options, cb)
43051
+
43052
+ function go$writeFile (path, data, options, cb, startTime) {
43053
+ return fs$writeFile(path, data, options, function (err) {
43054
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43055
+ enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
43056
+ else {
43057
+ if (typeof cb === 'function')
43058
+ cb.apply(this, arguments)
43059
+ }
43060
+ })
43061
+ }
43062
+ }
43063
+
43064
+ var fs$appendFile = fs.appendFile
43065
+ if (fs$appendFile)
43066
+ fs.appendFile = appendFile
43067
+ function appendFile (path, data, options, cb) {
43068
+ if (typeof options === 'function')
43069
+ cb = options, options = null
43070
+
43071
+ return go$appendFile(path, data, options, cb)
43072
+
43073
+ function go$appendFile (path, data, options, cb, startTime) {
43074
+ return fs$appendFile(path, data, options, function (err) {
43075
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43076
+ enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
43077
+ else {
43078
+ if (typeof cb === 'function')
43079
+ cb.apply(this, arguments)
43080
+ }
43081
+ })
43082
+ }
43083
+ }
43084
+
43085
+ var fs$copyFile = fs.copyFile
43086
+ if (fs$copyFile)
43087
+ fs.copyFile = copyFile
43088
+ function copyFile (src, dest, flags, cb) {
43089
+ if (typeof flags === 'function') {
43090
+ cb = flags
43091
+ flags = 0
43092
+ }
43093
+ return go$copyFile(src, dest, flags, cb)
43094
+
43095
+ function go$copyFile (src, dest, flags, cb, startTime) {
43096
+ return fs$copyFile(src, dest, flags, function (err) {
43097
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43098
+ enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
43099
+ else {
43100
+ if (typeof cb === 'function')
43101
+ cb.apply(this, arguments)
43102
+ }
43103
+ })
43104
+ }
43105
+ }
43106
+
43107
+ var fs$readdir = fs.readdir
43108
+ fs.readdir = readdir
43109
+ function readdir (path, options, cb) {
43110
+ if (typeof options === 'function')
43111
+ cb = options, options = null
43112
+
43113
+ return go$readdir(path, options, cb)
43114
+
43115
+ function go$readdir (path, options, cb, startTime) {
43116
+ return fs$readdir(path, options, function (err, files) {
43117
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43118
+ enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()])
43119
+ else {
43120
+ if (files && files.sort)
43121
+ files.sort()
43122
+
43123
+ if (typeof cb === 'function')
43124
+ cb.call(this, err, files)
43125
+ }
43126
+ })
43127
+ }
43128
+ }
43129
+
43130
+ if (process.version.substr(0, 4) === 'v0.8') {
43131
+ var legStreams = legacy(fs)
43132
+ ReadStream = legStreams.ReadStream
43133
+ WriteStream = legStreams.WriteStream
43134
+ }
43135
+
43136
+ var fs$ReadStream = fs.ReadStream
43137
+ if (fs$ReadStream) {
43138
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype)
43139
+ ReadStream.prototype.open = ReadStream$open
43140
+ }
43141
+
43142
+ var fs$WriteStream = fs.WriteStream
43143
+ if (fs$WriteStream) {
43144
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype)
43145
+ WriteStream.prototype.open = WriteStream$open
43146
+ }
43147
+
43148
+ Object.defineProperty(fs, 'ReadStream', {
43149
+ get: function () {
43150
+ return ReadStream
43151
+ },
43152
+ set: function (val) {
43153
+ ReadStream = val
43154
+ },
43155
+ enumerable: true,
43156
+ configurable: true
43157
+ })
43158
+ Object.defineProperty(fs, 'WriteStream', {
43159
+ get: function () {
43160
+ return WriteStream
43161
+ },
43162
+ set: function (val) {
43163
+ WriteStream = val
43164
+ },
43165
+ enumerable: true,
43166
+ configurable: true
43167
+ })
43168
+
43169
+ // legacy names
43170
+ var FileReadStream = ReadStream
43171
+ Object.defineProperty(fs, 'FileReadStream', {
43172
+ get: function () {
43173
+ return FileReadStream
43174
+ },
43175
+ set: function (val) {
43176
+ FileReadStream = val
43177
+ },
43178
+ enumerable: true,
43179
+ configurable: true
43180
+ })
43181
+ var FileWriteStream = WriteStream
43182
+ Object.defineProperty(fs, 'FileWriteStream', {
43183
+ get: function () {
43184
+ return FileWriteStream
43185
+ },
43186
+ set: function (val) {
43187
+ FileWriteStream = val
43188
+ },
43189
+ enumerable: true,
43190
+ configurable: true
43191
+ })
43192
+
43193
+ function ReadStream (path, options) {
43194
+ if (this instanceof ReadStream)
43195
+ return fs$ReadStream.apply(this, arguments), this
43196
+ else
43197
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
43198
+ }
43199
+
43200
+ function ReadStream$open () {
43201
+ var that = this
43202
+ open(that.path, that.flags, that.mode, function (err, fd) {
43203
+ if (err) {
43204
+ if (that.autoClose)
43205
+ that.destroy()
43206
+
43207
+ that.emit('error', err)
43208
+ } else {
43209
+ that.fd = fd
43210
+ that.emit('open', fd)
43211
+ that.read()
43212
+ }
43213
+ })
43214
+ }
43215
+
43216
+ function WriteStream (path, options) {
43217
+ if (this instanceof WriteStream)
43218
+ return fs$WriteStream.apply(this, arguments), this
43219
+ else
43220
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
43221
+ }
43222
+
43223
+ function WriteStream$open () {
43224
+ var that = this
43225
+ open(that.path, that.flags, that.mode, function (err, fd) {
43226
+ if (err) {
43227
+ that.destroy()
43228
+ that.emit('error', err)
43229
+ } else {
43230
+ that.fd = fd
43231
+ that.emit('open', fd)
43232
+ }
43233
+ })
43234
+ }
43235
+
43236
+ function createReadStream (path, options) {
43237
+ return new fs.ReadStream(path, options)
43238
+ }
43239
+
43240
+ function createWriteStream (path, options) {
43241
+ return new fs.WriteStream(path, options)
43242
+ }
43243
+
43244
+ var fs$open = fs.open
43245
+ fs.open = open
43246
+ function open (path, flags, mode, cb) {
43247
+ if (typeof mode === 'function')
43248
+ cb = mode, mode = null
43249
+
43250
+ return go$open(path, flags, mode, cb)
43251
+
43252
+ function go$open (path, flags, mode, cb, startTime) {
43253
+ return fs$open(path, flags, mode, function (err, fd) {
43254
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
43255
+ enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
43256
+ else {
43257
+ if (typeof cb === 'function')
43258
+ cb.apply(this, arguments)
43259
+ }
43260
+ })
43261
+ }
43262
+ }
43263
+
43264
+ return fs
43265
+ }
43266
+
43267
+ function enqueue (elem) {
43268
+ debug('ENQUEUE', elem[0].name, elem[1])
43269
+ fs[gracefulQueue].push(elem)
43270
+ retry()
43271
+ }
43272
+
43273
+ // keep track of the timeout between retry() calls
43274
+ var retryTimer
43275
+
43276
+ // reset the startTime and lastTime to now
43277
+ // this resets the start of the 60 second overall timeout as well as the
43278
+ // delay between attempts so that we'll retry these jobs sooner
43279
+ function resetQueue () {
43280
+ var now = Date.now()
43281
+ for (var i = 0; i < fs[gracefulQueue].length; ++i) {
43282
+ // entries that are only a length of 2 are from an older version, don't
43283
+ // bother modifying those since they'll be retried anyway.
43284
+ if (fs[gracefulQueue][i].length > 2) {
43285
+ fs[gracefulQueue][i][3] = now // startTime
43286
+ fs[gracefulQueue][i][4] = now // lastTime
43287
+ }
43288
+ }
43289
+ // call retry to make sure we're actively processing the queue
43290
+ retry()
43291
+ }
43292
+
43293
+ function retry () {
43294
+ // clear the timer and remove it to help prevent unintended concurrency
43295
+ clearTimeout(retryTimer)
43296
+ retryTimer = undefined
43297
+
43298
+ if (fs[gracefulQueue].length === 0)
43299
+ return
43300
+
43301
+ var elem = fs[gracefulQueue].shift()
43302
+ var fn = elem[0]
43303
+ var args = elem[1]
43304
+ // these items may be unset if they were added by an older graceful-fs
43305
+ var err = elem[2]
43306
+ var startTime = elem[3]
43307
+ var lastTime = elem[4]
43308
+
43309
+ // if we don't have a startTime we have no way of knowing if we've waited
43310
+ // long enough, so go ahead and retry this item now
43311
+ if (startTime === undefined) {
43312
+ debug('RETRY', fn.name, args)
43313
+ fn.apply(null, args)
43314
+ } else if (Date.now() - startTime >= 60000) {
43315
+ // it's been more than 60 seconds total, bail now
43316
+ debug('TIMEOUT', fn.name, args)
43317
+ var cb = args.pop()
43318
+ if (typeof cb === 'function')
43319
+ cb.call(null, err)
43320
+ } else {
43321
+ // the amount of time between the last attempt and right now
43322
+ var sinceAttempt = Date.now() - lastTime
43323
+ // the amount of time between when we first tried, and when we last tried
43324
+ // rounded up to at least 1
43325
+ var sinceStart = Math.max(lastTime - startTime, 1)
43326
+ // backoff. wait longer than the total time we've been retrying, but only
43327
+ // up to a maximum of 100ms
43328
+ var desiredDelay = Math.min(sinceStart * 1.2, 100)
43329
+ // it's been long enough since the last retry, do it again
43330
+ if (sinceAttempt >= desiredDelay) {
43331
+ debug('RETRY', fn.name, args)
43332
+ fn.apply(null, args.concat([startTime]))
43333
+ } else {
43334
+ // if we can't do this job yet, push it to the end of the queue
43335
+ // and let the next iteration check again
43336
+ fs[gracefulQueue].push(elem)
43337
+ }
43338
+ }
43339
+
43340
+ // schedule our next run if one isn't already scheduled
43341
+ if (retryTimer === undefined) {
43342
+ retryTimer = setTimeout(retry, 0)
43343
+ }
43344
+ }
43345
+
43346
+
43347
+ /***/ }),
43348
+
43349
+ /***/ 15601:
43350
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
43351
+
43352
+ var Stream = (__webpack_require__(12781).Stream)
43353
+
43354
+ module.exports = legacy
43355
+
43356
+ function legacy (fs) {
43357
+ return {
43358
+ ReadStream: ReadStream,
43359
+ WriteStream: WriteStream
43360
+ }
43361
+
43362
+ function ReadStream (path, options) {
43363
+ if (!(this instanceof ReadStream)) return new ReadStream(path, options);
43364
+
43365
+ Stream.call(this);
43366
+
43367
+ var self = this;
43368
+
43369
+ this.path = path;
43370
+ this.fd = null;
43371
+ this.readable = true;
43372
+ this.paused = false;
43373
+
43374
+ this.flags = 'r';
43375
+ this.mode = 438; /*=0666*/
43376
+ this.bufferSize = 64 * 1024;
43377
+
43378
+ options = options || {};
43379
+
43380
+ // Mixin options into this
43381
+ var keys = Object.keys(options);
43382
+ for (var index = 0, length = keys.length; index < length; index++) {
43383
+ var key = keys[index];
43384
+ this[key] = options[key];
43385
+ }
43386
+
43387
+ if (this.encoding) this.setEncoding(this.encoding);
43388
+
43389
+ if (this.start !== undefined) {
43390
+ if ('number' !== typeof this.start) {
43391
+ throw TypeError('start must be a Number');
43392
+ }
43393
+ if (this.end === undefined) {
43394
+ this.end = Infinity;
43395
+ } else if ('number' !== typeof this.end) {
43396
+ throw TypeError('end must be a Number');
43397
+ }
43398
+
43399
+ if (this.start > this.end) {
43400
+ throw new Error('start must be <= end');
43401
+ }
43402
+
43403
+ this.pos = this.start;
43404
+ }
43405
+
43406
+ if (this.fd !== null) {
43407
+ process.nextTick(function() {
43408
+ self._read();
43409
+ });
43410
+ return;
43411
+ }
43412
+
43413
+ fs.open(this.path, this.flags, this.mode, function (err, fd) {
43414
+ if (err) {
43415
+ self.emit('error', err);
43416
+ self.readable = false;
43417
+ return;
43418
+ }
43419
+
43420
+ self.fd = fd;
43421
+ self.emit('open', fd);
43422
+ self._read();
43423
+ })
43424
+ }
43425
+
43426
+ function WriteStream (path, options) {
43427
+ if (!(this instanceof WriteStream)) return new WriteStream(path, options);
43428
+
43429
+ Stream.call(this);
43430
+
43431
+ this.path = path;
43432
+ this.fd = null;
43433
+ this.writable = true;
43434
+
43435
+ this.flags = 'w';
43436
+ this.encoding = 'binary';
43437
+ this.mode = 438; /*=0666*/
43438
+ this.bytesWritten = 0;
43439
+
43440
+ options = options || {};
43441
+
43442
+ // Mixin options into this
43443
+ var keys = Object.keys(options);
43444
+ for (var index = 0, length = keys.length; index < length; index++) {
43445
+ var key = keys[index];
43446
+ this[key] = options[key];
43447
+ }
43448
+
43449
+ if (this.start !== undefined) {
43450
+ if ('number' !== typeof this.start) {
43451
+ throw TypeError('start must be a Number');
43452
+ }
43453
+ if (this.start < 0) {
43454
+ throw new Error('start must be >= zero');
43455
+ }
43456
+
43457
+ this.pos = this.start;
43458
+ }
43459
+
43460
+ this.busy = false;
43461
+ this._queue = [];
43462
+
43463
+ if (this.fd === null) {
43464
+ this._open = fs.open;
43465
+ this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
43466
+ this.flush();
43467
+ }
43468
+ }
43469
+ }
43470
+
43471
+
43472
+ /***/ }),
43473
+
43474
+ /***/ 18187:
43475
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
43476
+
43477
+ var constants = __webpack_require__(22057)
43478
+
43479
+ var origCwd = process.cwd
43480
+ var cwd = null
43481
+
43482
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
43483
+
43484
+ process.cwd = function() {
43485
+ if (!cwd)
43486
+ cwd = origCwd.call(process)
43487
+ return cwd
43488
+ }
43489
+ try {
43490
+ process.cwd()
43491
+ } catch (er) {}
43492
+
43493
+ // This check is needed until node.js 12 is required
43494
+ if (typeof process.chdir === 'function') {
43495
+ var chdir = process.chdir
43496
+ process.chdir = function (d) {
43497
+ cwd = null
43498
+ chdir.call(process, d)
43499
+ }
43500
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
43501
+ }
43502
+
43503
+ module.exports = patch
43504
+
43505
+ function patch (fs) {
43506
+ // (re-)implement some things that are known busted or missing.
43507
+
43508
+ // lchmod, broken prior to 0.6.2
43509
+ // back-port the fix here.
43510
+ if (constants.hasOwnProperty('O_SYMLINK') &&
43511
+ process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
43512
+ patchLchmod(fs)
43513
+ }
43514
+
43515
+ // lutimes implementation, or no-op
43516
+ if (!fs.lutimes) {
43517
+ patchLutimes(fs)
43518
+ }
43519
+
43520
+ // https://github.com/isaacs/node-graceful-fs/issues/4
43521
+ // Chown should not fail on einval or eperm if non-root.
43522
+ // It should not fail on enosys ever, as this just indicates
43523
+ // that a fs doesn't support the intended operation.
43524
+
43525
+ fs.chown = chownFix(fs.chown)
43526
+ fs.fchown = chownFix(fs.fchown)
43527
+ fs.lchown = chownFix(fs.lchown)
43528
+
43529
+ fs.chmod = chmodFix(fs.chmod)
43530
+ fs.fchmod = chmodFix(fs.fchmod)
43531
+ fs.lchmod = chmodFix(fs.lchmod)
43532
+
43533
+ fs.chownSync = chownFixSync(fs.chownSync)
43534
+ fs.fchownSync = chownFixSync(fs.fchownSync)
43535
+ fs.lchownSync = chownFixSync(fs.lchownSync)
43536
+
43537
+ fs.chmodSync = chmodFixSync(fs.chmodSync)
43538
+ fs.fchmodSync = chmodFixSync(fs.fchmodSync)
43539
+ fs.lchmodSync = chmodFixSync(fs.lchmodSync)
43540
+
43541
+ fs.stat = statFix(fs.stat)
43542
+ fs.fstat = statFix(fs.fstat)
43543
+ fs.lstat = statFix(fs.lstat)
43544
+
43545
+ fs.statSync = statFixSync(fs.statSync)
43546
+ fs.fstatSync = statFixSync(fs.fstatSync)
43547
+ fs.lstatSync = statFixSync(fs.lstatSync)
43548
+
43549
+ // if lchmod/lchown do not exist, then make them no-ops
43550
+ if (!fs.lchmod) {
43551
+ fs.lchmod = function (path, mode, cb) {
43552
+ if (cb) process.nextTick(cb)
43553
+ }
43554
+ fs.lchmodSync = function () {}
43555
+ }
43556
+ if (!fs.lchown) {
43557
+ fs.lchown = function (path, uid, gid, cb) {
43558
+ if (cb) process.nextTick(cb)
43559
+ }
43560
+ fs.lchownSync = function () {}
43561
+ }
43562
+
43563
+ // on Windows, A/V software can lock the directory, causing this
43564
+ // to fail with an EACCES or EPERM if the directory contains newly
43565
+ // created files. Try again on failure, for up to 60 seconds.
43566
+
43567
+ // Set the timeout this long because some Windows Anti-Virus, such as Parity
43568
+ // bit9, may lock files for up to a minute, causing npm package install
43569
+ // failures. Also, take care to yield the scheduler. Windows scheduling gives
43570
+ // CPU to a busy looping process, which can cause the program causing the lock
43571
+ // contention to be starved of CPU by node, so the contention doesn't resolve.
43572
+ if (platform === "win32") {
43573
+ fs.rename = (function (fs$rename) { return function (from, to, cb) {
43574
+ var start = Date.now()
43575
+ var backoff = 0;
43576
+ fs$rename(from, to, function CB (er) {
43577
+ if (er
43578
+ && (er.code === "EACCES" || er.code === "EPERM")
43579
+ && Date.now() - start < 60000) {
43580
+ setTimeout(function() {
43581
+ fs.stat(to, function (stater, st) {
43582
+ if (stater && stater.code === "ENOENT")
43583
+ fs$rename(from, to, CB);
43584
+ else
43585
+ cb(er)
43586
+ })
43587
+ }, backoff)
43588
+ if (backoff < 100)
43589
+ backoff += 10;
43590
+ return;
43591
+ }
43592
+ if (cb) cb(er)
43593
+ })
43594
+ }})(fs.rename)
43595
+ }
43596
+
43597
+ // if read() returns EAGAIN, then just try it again.
43598
+ fs.read = (function (fs$read) {
43599
+ function read (fd, buffer, offset, length, position, callback_) {
43600
+ var callback
43601
+ if (callback_ && typeof callback_ === 'function') {
43602
+ var eagCounter = 0
43603
+ callback = function (er, _, __) {
43604
+ if (er && er.code === 'EAGAIN' && eagCounter < 10) {
43605
+ eagCounter ++
43606
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
43607
+ }
43608
+ callback_.apply(this, arguments)
43609
+ }
43610
+ }
43611
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
43612
+ }
43613
+
43614
+ // This ensures `util.promisify` works as it does for native `fs.read`.
43615
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
43616
+ return read
43617
+ })(fs.read)
43618
+
43619
+ fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
43620
+ var eagCounter = 0
43621
+ while (true) {
43622
+ try {
43623
+ return fs$readSync.call(fs, fd, buffer, offset, length, position)
43624
+ } catch (er) {
43625
+ if (er.code === 'EAGAIN' && eagCounter < 10) {
43626
+ eagCounter ++
43627
+ continue
43628
+ }
43629
+ throw er
43630
+ }
43631
+ }
43632
+ }})(fs.readSync)
43633
+
43634
+ function patchLchmod (fs) {
43635
+ fs.lchmod = function (path, mode, callback) {
43636
+ fs.open( path
43637
+ , constants.O_WRONLY | constants.O_SYMLINK
43638
+ , mode
43639
+ , function (err, fd) {
43640
+ if (err) {
43641
+ if (callback) callback(err)
43642
+ return
43643
+ }
43644
+ // prefer to return the chmod error, if one occurs,
43645
+ // but still try to close, and report closing errors if they occur.
43646
+ fs.fchmod(fd, mode, function (err) {
43647
+ fs.close(fd, function(err2) {
43648
+ if (callback) callback(err || err2)
43649
+ })
43650
+ })
43651
+ })
43652
+ }
43653
+
43654
+ fs.lchmodSync = function (path, mode) {
43655
+ var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
43656
+
43657
+ // prefer to return the chmod error, if one occurs,
43658
+ // but still try to close, and report closing errors if they occur.
43659
+ var threw = true
43660
+ var ret
43661
+ try {
43662
+ ret = fs.fchmodSync(fd, mode)
43663
+ threw = false
43664
+ } finally {
43665
+ if (threw) {
43666
+ try {
43667
+ fs.closeSync(fd)
43668
+ } catch (er) {}
43669
+ } else {
43670
+ fs.closeSync(fd)
43671
+ }
43672
+ }
43673
+ return ret
43674
+ }
43675
+ }
43676
+
43677
+ function patchLutimes (fs) {
43678
+ if (constants.hasOwnProperty("O_SYMLINK")) {
43679
+ fs.lutimes = function (path, at, mt, cb) {
43680
+ fs.open(path, constants.O_SYMLINK, function (er, fd) {
43681
+ if (er) {
43682
+ if (cb) cb(er)
43683
+ return
43684
+ }
43685
+ fs.futimes(fd, at, mt, function (er) {
43686
+ fs.close(fd, function (er2) {
43687
+ if (cb) cb(er || er2)
43688
+ })
43689
+ })
43690
+ })
43691
+ }
43692
+
43693
+ fs.lutimesSync = function (path, at, mt) {
43694
+ var fd = fs.openSync(path, constants.O_SYMLINK)
43695
+ var ret
43696
+ var threw = true
43697
+ try {
43698
+ ret = fs.futimesSync(fd, at, mt)
43699
+ threw = false
43700
+ } finally {
43701
+ if (threw) {
43702
+ try {
43703
+ fs.closeSync(fd)
43704
+ } catch (er) {}
43705
+ } else {
43706
+ fs.closeSync(fd)
43707
+ }
43708
+ }
43709
+ return ret
43710
+ }
43711
+
43712
+ } else {
43713
+ fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
43714
+ fs.lutimesSync = function () {}
43715
+ }
43716
+ }
43717
+
43718
+ function chmodFix (orig) {
43719
+ if (!orig) return orig
43720
+ return function (target, mode, cb) {
43721
+ return orig.call(fs, target, mode, function (er) {
43722
+ if (chownErOk(er)) er = null
43723
+ if (cb) cb.apply(this, arguments)
43724
+ })
43725
+ }
43726
+ }
43727
+
43728
+ function chmodFixSync (orig) {
43729
+ if (!orig) return orig
43730
+ return function (target, mode) {
43731
+ try {
43732
+ return orig.call(fs, target, mode)
43733
+ } catch (er) {
43734
+ if (!chownErOk(er)) throw er
43735
+ }
43736
+ }
43737
+ }
43738
+
43739
+
43740
+ function chownFix (orig) {
43741
+ if (!orig) return orig
43742
+ return function (target, uid, gid, cb) {
43743
+ return orig.call(fs, target, uid, gid, function (er) {
43744
+ if (chownErOk(er)) er = null
43745
+ if (cb) cb.apply(this, arguments)
43746
+ })
43747
+ }
43748
+ }
43749
+
43750
+ function chownFixSync (orig) {
43751
+ if (!orig) return orig
43752
+ return function (target, uid, gid) {
43753
+ try {
43754
+ return orig.call(fs, target, uid, gid)
43755
+ } catch (er) {
43756
+ if (!chownErOk(er)) throw er
43757
+ }
43758
+ }
43759
+ }
43760
+
43761
+ function statFix (orig) {
43762
+ if (!orig) return orig
43763
+ // Older versions of Node erroneously returned signed integers for
43764
+ // uid + gid.
43765
+ return function (target, options, cb) {
43766
+ if (typeof options === 'function') {
43767
+ cb = options
43768
+ options = null
43769
+ }
43770
+ function callback (er, stats) {
43771
+ if (stats) {
43772
+ if (stats.uid < 0) stats.uid += 0x100000000
43773
+ if (stats.gid < 0) stats.gid += 0x100000000
43774
+ }
43775
+ if (cb) cb.apply(this, arguments)
43776
+ }
43777
+ return options ? orig.call(fs, target, options, callback)
43778
+ : orig.call(fs, target, callback)
43779
+ }
43780
+ }
43781
+
43782
+ function statFixSync (orig) {
43783
+ if (!orig) return orig
43784
+ // Older versions of Node erroneously returned signed integers for
43785
+ // uid + gid.
43786
+ return function (target, options) {
43787
+ var stats = options ? orig.call(fs, target, options)
43788
+ : orig.call(fs, target)
43789
+ if (stats) {
43790
+ if (stats.uid < 0) stats.uid += 0x100000000
43791
+ if (stats.gid < 0) stats.gid += 0x100000000
43792
+ }
43793
+ return stats;
43794
+ }
43795
+ }
43796
+
43797
+ // ENOSYS means that the fs doesn't support the op. Just ignore
43798
+ // that, because it doesn't matter.
43799
+ //
43800
+ // if there's no getuid, or if getuid() is something other
43801
+ // than 0, and the error is EINVAL or EPERM, then just ignore
43802
+ // it.
43803
+ //
43804
+ // This specific case is a silent failure in cp, install, tar,
43805
+ // and most other unix tools that manage permissions.
43806
+ //
43807
+ // When running as root, or if other types of errors are
43808
+ // encountered, then it's strict.
43809
+ function chownErOk (er) {
43810
+ if (!er)
43811
+ return true
43812
+
43813
+ if (er.code === "ENOSYS")
43814
+ return true
43815
+
43816
+ var nonroot = !process.getuid || process.getuid() !== 0
43817
+ if (nonroot) {
43818
+ if (er.code === "EINVAL" || er.code === "EPERM")
43819
+ return true
43820
+ }
43821
+
43822
+ return false
43823
+ }
43824
+ }
43825
+
43826
+
42880
43827
  /***/ }),
42881
43828
 
42882
43829
  /***/ 76157:
@@ -57880,7 +58827,7 @@ exports.parse = function (s) {
57880
58827
 
57881
58828
  let _fs
57882
58829
  try {
57883
- _fs = __webpack_require__(62204)
58830
+ _fs = __webpack_require__(19677)
57884
58831
  } catch (_) {
57885
58832
  _fs = __webpack_require__(57147)
57886
58833
  }
@@ -102122,7 +103069,7 @@ const PackageManagerSchema = {
102122
103069
  label: () => _locale.i18n.t(_locale.localeKeys.packageManager.self),
102123
103070
  mutualExclusion: true,
102124
103071
  when: (_values, extra) => !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject),
102125
- items: (_values, extra) => Object.values(PackageManager).filter(packageManager => extra !== null && extra !== void 0 && extra.isMonorepo ? packageManager !== PackageManager.Npm : true).map(packageManager => ({
103072
+ items: Object.values(PackageManager).map(packageManager => ({
102126
103073
  key: packageManager,
102127
103074
  label: PackageManagerName[packageManager]
102128
103075
  }))
@@ -103036,7 +103983,17 @@ exports.MonorepoSchemas = exports.MonorepoSchema = exports.MonorepoDefaultConfig
103036
103983
 
103037
103984
  var _common = __webpack_require__(25523);
103038
103985
 
103039
- const MonorepoSchemas = [_common.PackageManagerSchema];
103986
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
103987
+
103988
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
103989
+
103990
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
103991
+
103992
+ const MonorepoPackageManagerSchema = _objectSpread(_objectSpread({}, _common.PackageManagerSchema), {}, {
103993
+ items: _common.PackageManagerSchema.items.filter(item => item.key !== _common.PackageManager.Npm)
103994
+ });
103995
+
103996
+ const MonorepoSchemas = [MonorepoPackageManagerSchema];
103040
103997
  exports.MonorepoSchemas = MonorepoSchemas;
103041
103998
  const MonorepoSchema = {
103042
103999
  key: 'monorepo',
@@ -103232,10 +104189,10 @@ const FrameworkSchema = {
103232
104189
  };
103233
104190
  exports.FrameworkSchema = FrameworkSchema;
103234
104191
  const FrameworkAppendTypeContent = {
103235
- [Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
103236
- [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`,
103237
- [Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />`,
103238
- [Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />`
104192
+ [Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
104193
+ [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
104194
+ [Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
104195
+ [Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`
103239
104196
  };
103240
104197
  exports.FrameworkAppendTypeContent = FrameworkAppendTypeContent;
103241
104198
 
@@ -103720,7 +104677,7 @@ Object.keys(_monorepo).forEach(function (key) {
103720
104677
  Object.defineProperty(exports, "__esModule", ({
103721
104678
  value: true
103722
104679
  }));
103723
- exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctions = void 0;
104680
+ exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctionsAppendTypeContent = exports.ModuleActionFunctions = void 0;
103724
104681
 
103725
104682
  var _common = __webpack_require__(78353);
103726
104683
 
@@ -103778,9 +104735,13 @@ const ModuleActionFunctionsDependencies = {
103778
104735
  [_common.ActionFunction.Sass]: '@modern-js/plugin-sass'
103779
104736
  };
103780
104737
  exports.ModuleActionFunctionsDependencies = ModuleActionFunctionsDependencies;
104738
+ const ModuleActionFunctionsAppendTypeContent = {
104739
+ [_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
104740
+ };
104741
+ exports.ModuleActionFunctionsAppendTypeContent = ModuleActionFunctionsAppendTypeContent;
103781
104742
  const ModuleNewActionGenerators = {
103782
104743
  [_common.ActionType.Function]: {
103783
- [_common.ActionFunction.TailwindCSS]: '@modern-js/dependence-generator',
104744
+ [_common.ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
103784
104745
  [_common.ActionFunction.Less]: '@modern-js/dependence-generator',
103785
104746
  [_common.ActionFunction.Sass]: '@modern-js/dependence-generator',
103786
104747
  [_common.ActionFunction.I18n]: '@modern-js/dependence-generator',
@@ -103914,12 +104875,14 @@ const MWAActionFunctionsDependencies = {
103914
104875
  [_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-garfish',
103915
104876
  [_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
103916
104877
  [_common.ActionFunction.SSG]: '@modern-js/plugin-ssg',
103917
- [_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
104878
+ [_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill',
104879
+ [_common.ActionFunction.TailwindCSS]: 'tailwindcss'
103918
104880
  };
103919
104881
  exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
103920
104882
  const MWAActionFunctionsAppendTypeContent = {
103921
104883
  [_common.ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/type' />`,
103922
- [_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`
104884
+ [_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`,
104885
+ [_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
103923
104886
  };
103924
104887
  exports.MWAActionFunctionsAppendTypeContent = MWAActionFunctionsAppendTypeContent;
103925
104888
  const MWANewActionGenerators = {
@@ -104457,7 +105420,7 @@ const PackageManagerSchema = {
104457
105420
  label: () => modern_locale_i18n.t(modern_locale_localeKeys.packageManager.self),
104458
105421
  mutualExclusion: true,
104459
105422
  when: (_values, extra) => !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject),
104460
- items: (_values, extra) => Object.values(PackageManager).filter(packageManager => extra !== null && extra !== void 0 && extra.isMonorepo ? packageManager !== PackageManager.Npm : true).map(packageManager => ({
105423
+ items: Object.values(PackageManager).map(packageManager => ({
104461
105424
  key: packageManager,
104462
105425
  label: PackageManagerName[packageManager]
104463
105426
  }))
@@ -104789,8 +105752,19 @@ const ModuleDefaultConfig = {
104789
105752
  enableSass: BooleanConfig.NO
104790
105753
  };
104791
105754
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/monorepo/project.js
105755
+ function project_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
105756
+
105757
+ function project_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? project_ownKeys(Object(source), !0).forEach(function (key) { project_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : project_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
105758
+
105759
+ function project_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
105760
+
104792
105761
 
104793
- const MonorepoSchemas = [PackageManagerSchema];
105762
+
105763
+ const MonorepoPackageManagerSchema = project_objectSpread(project_objectSpread({}, PackageManagerSchema), {}, {
105764
+ items: PackageManagerSchema.items.filter(item => item.key !== PackageManager.Npm)
105765
+ });
105766
+
105767
+ const MonorepoSchemas = [MonorepoPackageManagerSchema];
104794
105768
  const MonorepoSchema = {
104795
105769
  key: 'monorepo',
104796
105770
  isObject: true,
@@ -104900,10 +105874,10 @@ const FrameworkSchema = {
104900
105874
  }))
104901
105875
  };
104902
105876
  const FrameworkAppendTypeContent = {
104903
- [Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
104904
- [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`,
104905
- [Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />`,
104906
- [Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />`
105877
+ [Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
105878
+ [Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
105879
+ [Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
105880
+ [Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`
104907
105881
  };
104908
105882
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/mwa/project.js
104909
105883
 
@@ -106788,11 +107762,13 @@ const MWAActionFunctionsDependencies = {
106788
107762
  [ActionFunction.MicroFrontend]: '@modern-js/plugin-garfish',
106789
107763
  [ActionFunction.I18n]: '@modern-js/plugin-i18n',
106790
107764
  [ActionFunction.SSG]: '@modern-js/plugin-ssg',
106791
- [ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
107765
+ [ActionFunction.Polyfill]: '@modern-js/plugin-polyfill',
107766
+ [ActionFunction.TailwindCSS]: 'tailwindcss'
106792
107767
  };
106793
107768
  const MWAActionFunctionsAppendTypeContent = {
106794
107769
  [ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/type' />`,
106795
- [ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`
107770
+ [ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`,
107771
+ [ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
106796
107772
  };
106797
107773
  const MWANewActionGenerators = {
106798
107774
  [ActionType.Element]: {
@@ -106868,9 +107844,12 @@ const ModuleActionFunctionsDependencies = {
106868
107844
  [ActionFunction.Less]: '@modern-js/plugin-less',
106869
107845
  [ActionFunction.Sass]: '@modern-js/plugin-sass'
106870
107846
  };
107847
+ const ModuleActionFunctionsAppendTypeContent = {
107848
+ [ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
107849
+ };
106871
107850
  const ModuleNewActionGenerators = {
106872
107851
  [ActionType.Function]: {
106873
- [ActionFunction.TailwindCSS]: '@modern-js/dependence-generator',
107852
+ [ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
106874
107853
  [ActionFunction.Less]: '@modern-js/dependence-generator',
106875
107854
  [ActionFunction.Sass]: '@modern-js/dependence-generator',
106876
107855
  [ActionFunction.I18n]: '@modern-js/dependence-generator',
@@ -111918,7 +112897,8 @@ const ModuleNewAction = async options => {
111918
112897
  } : {},
111919
112898
  peerDependencies: peerDependency ? {
111920
112899
  [peerDependency]: `^${await getPackageVersion(peerDependency)}`
111921
- } : {}
112900
+ } : {},
112901
+ appendTypeContent: ModuleActionFunctionsAppendTypeContent[action]
111922
112902
  });
111923
112903
 
111924
112904
  const task = [{
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.2",
14
+ "version": "1.3.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -50,6 +50,7 @@
50
50
  }
51
51
  },
52
52
  "publishConfig": {
53
+ "main": "./dist/js/node/main.js",
53
54
  "registry": "https://registry.npmjs.org/",
54
55
  "access": "public"
55
56
  },