@modern-js/plugin-tailwindcss 0.0.0-next-1687763825625 → 0.0.0-next-1687764171352

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/CHANGELOG.md CHANGED
@@ -1,16 +1,12 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
- ## 0.0.0-next-1687763825625
3
+ ## 0.0.0-next-1687764171352
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 4c4c0ade4: feat: add named exports for all CLI plugins
8
-
9
- feat: 为各个 CLI 插件添加 named 导出
10
-
11
- - Updated dependencies [5732c6a08]
12
- - @modern-js/utils@0.0.0-next-1687763825625
13
- - @modern-js/runtime@0.0.0-next-1687763825625
7
+ - Updated dependencies [13354d335]
8
+ - @modern-js/runtime@0.0.0-next-1687764171352
9
+ - @modern-js/utils@0.0.0-next-1687764171352
14
10
 
15
11
  ## 2.24.0
16
12
 
package/dist/cjs/cli.js CHANGED
@@ -13,9 +13,6 @@ _export(exports, {
13
13
  getRandomTwConfigFileName: function() {
14
14
  return getRandomTwConfigFileName;
15
15
  },
16
- tailwindcssPlugin: function() {
17
- return tailwindcssPlugin;
18
- },
19
16
  default: function() {
20
17
  return _default;
21
18
  }
@@ -45,7 +42,7 @@ function getDefaultContent(appDirectory) {
45
42
  }
46
43
  return defaultContent;
47
44
  }
48
- const tailwindcssPlugin = ({ pluginName } = {
45
+ const _default = ({ pluginName } = {
49
46
  pluginName: "@modern-js/plugin-tailwindcss"
50
47
  }) => {
51
48
  return {
@@ -164,4 +161,3 @@ const tailwindcssPlugin = ({ pluginName } = {
164
161
  }
165
162
  };
166
163
  };
167
- const _default = tailwindcssPlugin;
package/dist/cjs/index.js CHANGED
@@ -2,20 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- function _export(target, all) {
6
- for (var name in all)
7
- Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- tailwindcssPlugin: function() {
14
- return _cli.tailwindcssPlugin;
15
- },
16
- default: function() {
17
- return _default;
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _cli.default;
18
9
  }
19
10
  });
20
- const _cli = require("./cli");
21
- const _default = _cli.tailwindcssPlugin;
11
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
12
+ const _cli = /* @__PURE__ */ _interop_require_default._(require("./cli"));
package/dist/esm/cli.js CHANGED
@@ -24,7 +24,7 @@ function getDefaultContent(appDirectory) {
24
24
  }
25
25
  return defaultContent;
26
26
  }
27
- export var tailwindcssPlugin = function() {
27
+ export default function() {
28
28
  var pluginName = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
29
29
  pluginName: "@modern-js/plugin-tailwindcss"
30
30
  }).pluginName;
@@ -163,5 +163,5 @@ export var tailwindcssPlugin = function() {
163
163
  };
164
164
  }()
165
165
  };
166
- };
167
- export default tailwindcssPlugin;
166
+ }
167
+ ;
package/dist/esm/index.js CHANGED
@@ -1,3 +1 @@
1
- import { tailwindcssPlugin } from "./cli";
2
- export { tailwindcssPlugin };
3
- export default tailwindcssPlugin;
1
+ export { default } from "./cli";
@@ -22,7 +22,7 @@ function getDefaultContent(appDirectory) {
22
22
  }
23
23
  return defaultContent;
24
24
  }
25
- export const tailwindcssPlugin = ({ pluginName } = {
25
+ export default ({ pluginName } = {
26
26
  pluginName: "@modern-js/plugin-tailwindcss"
27
27
  }) => {
28
28
  return {
@@ -141,4 +141,3 @@ export const tailwindcssPlugin = ({ pluginName } = {
141
141
  }
142
142
  };
143
143
  };
144
- export default tailwindcssPlugin;
@@ -1,3 +1 @@
1
- import { tailwindcssPlugin } from "./cli";
2
- export { tailwindcssPlugin };
3
- export default tailwindcssPlugin;
1
+ export { default } from "./cli";
@@ -1,9 +1,9 @@
1
1
  import type { LegacyAppTools } from '@modern-js/app-tools';
2
2
  import type { CliPlugin, ModuleTools } from '@modern-js/module-tools';
3
3
  export declare const getRandomTwConfigFileName: (internalDirectory: string) => string;
4
- export declare const tailwindcssPlugin: ({
4
+ declare const _default: ({
5
5
  pluginName
6
6
  }?: {
7
7
  pluginName: string;
8
8
  }) => CliPlugin<LegacyAppTools & ModuleTools>;
9
- export default tailwindcssPlugin;
9
+ export default _default;
@@ -1,3 +1 @@
1
- import { tailwindcssPlugin } from './cli';
2
- export { tailwindcssPlugin };
3
- export default tailwindcssPlugin;
1
+ export { default } from './cli';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1687763825625",
18
+ "version": "0.0.0-next-1687764171352",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -49,7 +49,7 @@
49
49
  "babel-plugin-macros": "3.1.0",
50
50
  "hoist-non-react-statics": "^3.3.2",
51
51
  "@swc/helpers": "0.5.1",
52
- "@modern-js/utils": "0.0.0-next-1687763825625"
52
+ "@modern-js/utils": "0.0.0-next-1687764171352"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/jest": "^29",
@@ -59,17 +59,17 @@
59
59
  "jest": "^29",
60
60
  "react": "^18",
61
61
  "postcss": "8.4.21",
62
- "@modern-js/core": "0.0.0-next-1687763825625",
63
- "@modern-js/module-tools": "0.0.0-next-1687763825625",
64
- "@modern-js/runtime": "0.0.0-next-1687763825625",
65
- "@modern-js/types": "0.0.0-next-1687763825625",
66
- "@scripts/build": "0.0.0-next-1687763825625",
67
- "@scripts/jest-config": "0.0.0-next-1687763825625",
68
- "@modern-js/app-tools": "0.0.0-next-1687763825625"
62
+ "@modern-js/core": "0.0.0-next-1687764171352",
63
+ "@modern-js/module-tools": "0.0.0-next-1687764171352",
64
+ "@modern-js/runtime": "0.0.0-next-1687764171352",
65
+ "@modern-js/types": "0.0.0-next-1687764171352",
66
+ "@scripts/build": "0.0.0-next-1687764171352",
67
+ "@modern-js/app-tools": "0.0.0-next-1687764171352",
68
+ "@scripts/jest-config": "0.0.0-next-1687764171352"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
72
- "@modern-js/runtime": "0.0.0-next-1687763825625"
72
+ "@modern-js/runtime": "0.0.0-next-1687764171352"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@modern-js/runtime": {