weapp-tailwindcss 3.2.0-alpha.1 → 3.2.0-alpha.2

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/cli.js CHANGED
@@ -42,3 +42,14 @@ if (command === 'patch') {
42
42
  const patch = options.createPatch(options$1.supportCustomLengthUnitsPatch);
43
43
  patch();
44
44
  }
45
+ else {
46
+ try {
47
+ import('@weapp-tailwindcss/cli').then(({ createCli }) => {
48
+ createCli().parse();
49
+ });
50
+ }
51
+ catch (error) {
52
+ console.warn('请先安装 `@weapp-tailwindcss/cli` , 安装完成后再尝试运行!');
53
+ throw error;
54
+ }
55
+ }
package/dist/cli.mjs CHANGED
@@ -36,3 +36,14 @@ if (command === 'patch') {
36
36
  const patch = createPatch(options.supportCustomLengthUnitsPatch);
37
37
  patch();
38
38
  }
39
+ else {
40
+ try {
41
+ import('@weapp-tailwindcss/cli').then(({ createCli }) => {
42
+ createCli().parse();
43
+ });
44
+ }
45
+ catch (error) {
46
+ console.warn('请先安装 `@weapp-tailwindcss/cli` , 安装完成后再尝试运行!');
47
+ throw error;
48
+ }
49
+ }
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var index$1 = require('./index-DyHMB5jI.js');
5
6
  var v5 = require('./v5-CbEl4DHT.js');
6
7
  var index = require('./index-CJ2avZMo.js');
7
- var index$1 = require('./index-DyHMB5jI.js');
8
8
  require('./options-CJjfTssp.js');
9
9
  require('magic-string');
10
10
  require('./replace.js');
@@ -31,12 +31,12 @@ require('tailwindcss-patch');
31
31
  require('@tailwindcss-mangle/shared');
32
32
  require('lru-cache');
33
33
  require('md5');
34
+ require('node:stream');
34
35
  require('./index-DyK5Vd4R.js');
35
36
  require('debug');
36
- require('node:stream');
37
37
 
38
38
 
39
39
 
40
+ exports.createPlugins = index$1.createPlugins;
40
41
  exports.UnifiedWebpackPluginV5 = v5.UnifiedWebpackPluginV5;
41
42
  exports.UnifiedViteWeappTailwindcssPlugin = index.UnifiedViteWeappTailwindcssPlugin;
42
- exports.createPlugins = index$1.createPlugins;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
+ export { c as createPlugins } from './index-BhrpFuVY.mjs';
1
2
  export { U as UnifiedWebpackPluginV5 } from './v5-Dxj0DyQd.mjs';
2
3
  export { U as UnifiedViteWeappTailwindcssPlugin } from './index-Bv5O41ly.mjs';
3
- export { c as createPlugins } from './index-BhrpFuVY.mjs';
4
4
  import './options-B4Q7Koe2.mjs';
5
5
  import 'magic-string';
6
6
  import './replace.mjs';
@@ -27,6 +27,6 @@ import 'tailwindcss-patch';
27
27
  import '@tailwindcss-mangle/shared';
28
28
  import 'lru-cache';
29
29
  import 'md5';
30
+ import 'node:stream';
30
31
  import './index-CsZGfl55.mjs';
31
32
  import 'debug';
32
- import 'node:stream';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "3.2.0-alpha.1",
3
+ "version": "3.2.0-alpha.2",
4
4
  "description": "把tailwindcss jit引擎,带给小程序开发者们! bring tailwindcss jit engine to miniprogram developers!",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -154,6 +154,7 @@
154
154
  "@types/webpack4": "npm:@types/webpack@4",
155
155
  "@vitest/coverage-v8": "^1.5.0",
156
156
  "@vitest/ui": "^1.5.0",
157
+ "@weapp-tailwindcss/cli": "0.0.0-alpha.0",
157
158
  "autoprefixer": "^10.4.19",
158
159
  "babel-loader": "^9.1.3",
159
160
  "bumpp": "^9.4.0",
@@ -256,6 +257,7 @@
256
257
  "demo:link": "node scripts/demo/link.js",
257
258
  "demo:install": "node scripts/demo/install.js",
258
259
  "demo:install:beta": "node scripts/demo/install.js --beta",
260
+ "demo:install:alpha": "node scripts/demo/install.js --beta",
259
261
  "demo:remove-deps": "node scripts/demo/del.js",
260
262
  "demo:remove-test-coms": "node scripts/demo/remove-test-coms.js",
261
263
  "demo:sync-dist": "node scripts/demo/copy-dist.js",