@vituum/vite-plugin-tailwindcss 1.0.0-alpha.1 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,14 +2,14 @@ import postcssImport from 'postcss-import'
2
2
  import postcssNesting from 'postcss-nesting'
3
3
  import postcssCustomMedia from 'postcss-custom-media'
4
4
  import tailwindcss from 'tailwindcss'
5
- import tailwindcssNesting from 'tailwindcss/nesting'
5
+ import tailwindcssNesting from 'tailwindcss/nesting/index.js'
6
6
  import autoprefixer from 'autoprefixer'
7
7
  import { getPackageInfo, merge } from 'vituum/utils/common.js'
8
8
 
9
9
  const { name } = getPackageInfo(import.meta.url)
10
10
 
11
11
  /**
12
- * @type {import('@vituum/vite-plugin-tailwind/types/index').PluginUserConfig}
12
+ * @type {import('@vituum/vite-plugin-tailwindcss/types/index').PluginUserConfig}
13
13
  */
14
14
  const defaultOptions = {
15
15
  import: {},
@@ -20,7 +20,7 @@ const defaultOptions = {
20
20
  }
21
21
 
22
22
  /**
23
- * @param {import('@vituum/vite-plugin-tailwind/types/index').PluginUserConfig} options
23
+ * @param {import('@vituum/vite-plugin-tailwindcss/types/index').PluginUserConfig} options
24
24
  * @returns {import('vite').Plugin}
25
25
  */
26
26
  const plugin = (options = {}) => {
@@ -37,7 +37,7 @@ const plugin = (options = {}) => {
37
37
  return {
38
38
  name,
39
39
  enforce: 'pre',
40
- /** @param {import('@vituum/vite-plugin-tailwind/types/viteUserConfig').ViteUserConfig} userConfig */
40
+ /** @param {import('@vituum/vite-plugin-tailwindcss/types/viteUserConfig').ViteUserConfig} userConfig */
41
41
  config (userConfig) {
42
42
  if (!userConfig?.css?.postcss && !userConfig?.css?.postcss?.plugins) {
43
43
  userConfig.css = userConfig.css || {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vituum/vite-plugin-tailwindcss",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "scripts": {