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

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,12 +1,16 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
- ## 0.0.0-next-1687764171352
3
+ ## 0.0.0-next-1687766264699
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [13354d335]
8
- - @modern-js/runtime@0.0.0-next-1687764171352
9
- - @modern-js/utils@0.0.0-next-1687764171352
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-1687766264699
13
+ - @modern-js/runtime@0.0.0-next-1687766264699
10
14
 
11
15
  ## 2.24.0
12
16
 
package/dist/cjs/cli.js CHANGED
@@ -13,6 +13,9 @@ _export(exports, {
13
13
  getRandomTwConfigFileName: function() {
14
14
  return getRandomTwConfigFileName;
15
15
  },
16
+ tailwindcssPlugin: function() {
17
+ return tailwindcssPlugin;
18
+ },
16
19
  default: function() {
17
20
  return _default;
18
21
  }
@@ -42,7 +45,7 @@ function getDefaultContent(appDirectory) {
42
45
  }
43
46
  return defaultContent;
44
47
  }
45
- const _default = ({ pluginName } = {
48
+ const tailwindcssPlugin = ({ pluginName } = {
46
49
  pluginName: "@modern-js/plugin-tailwindcss"
47
50
  }) => {
48
51
  return {
@@ -161,3 +164,4 @@ const _default = ({ pluginName } = {
161
164
  }
162
165
  };
163
166
  };
167
+ const _default = tailwindcssPlugin;
package/dist/cjs/index.js CHANGED
@@ -2,11 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _cli.default;
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;
9
18
  }
10
19
  });
11
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
12
- const _cli = /* @__PURE__ */ _interop_require_default._(require("./cli"));
20
+ const _cli = require("./cli");
21
+ const _default = _cli.tailwindcssPlugin;
package/dist/esm/cli.js CHANGED
@@ -24,7 +24,7 @@ function getDefaultContent(appDirectory) {
24
24
  }
25
25
  return defaultContent;
26
26
  }
27
- export default function() {
27
+ export var tailwindcssPlugin = 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 default function() {
163
163
  };
164
164
  }()
165
165
  };
166
- }
167
- ;
166
+ };
167
+ export default tailwindcssPlugin;
package/dist/esm/index.js CHANGED
@@ -1 +1,3 @@
1
- export { default } from "./cli";
1
+ import { tailwindcssPlugin } from "./cli";
2
+ export { tailwindcssPlugin };
3
+ export default tailwindcssPlugin;
@@ -22,7 +22,7 @@ function getDefaultContent(appDirectory) {
22
22
  }
23
23
  return defaultContent;
24
24
  }
25
- export default ({ pluginName } = {
25
+ export const tailwindcssPlugin = ({ pluginName } = {
26
26
  pluginName: "@modern-js/plugin-tailwindcss"
27
27
  }) => {
28
28
  return {
@@ -141,3 +141,4 @@ export default ({ pluginName } = {
141
141
  }
142
142
  };
143
143
  };
144
+ export default tailwindcssPlugin;
@@ -1 +1,3 @@
1
- export { default } from "./cli";
1
+ import { tailwindcssPlugin } from "./cli";
2
+ export { tailwindcssPlugin };
3
+ export default tailwindcssPlugin;
@@ -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
- declare const _default: ({
4
+ export declare const tailwindcssPlugin: ({
5
5
  pluginName
6
6
  }?: {
7
7
  pluginName: string;
8
8
  }) => CliPlugin<LegacyAppTools & ModuleTools>;
9
- export default _default;
9
+ export default tailwindcssPlugin;
@@ -1 +1,3 @@
1
- export { default } from './cli';
1
+ import { tailwindcssPlugin } from './cli';
2
+ export { tailwindcssPlugin };
3
+ export default tailwindcssPlugin;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1687764171352",
18
+ "version": "0.0.0-next-1687766264699",
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-1687764171352"
52
+ "@modern-js/utils": "0.0.0-next-1687766264699"
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-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"
62
+ "@modern-js/core": "0.0.0-next-1687766264699",
63
+ "@modern-js/module-tools": "0.0.0-next-1687766264699",
64
+ "@modern-js/types": "0.0.0-next-1687766264699",
65
+ "@modern-js/runtime": "0.0.0-next-1687766264699",
66
+ "@scripts/build": "0.0.0-next-1687766264699",
67
+ "@scripts/jest-config": "0.0.0-next-1687766264699",
68
+ "@modern-js/app-tools": "0.0.0-next-1687766264699"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
72
- "@modern-js/runtime": "0.0.0-next-1687764171352"
72
+ "@modern-js/runtime": "0.0.0-next-1687766264699"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@modern-js/runtime": {