@pequity/squirrel 1.0.13 → 1.0.15

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/README.md +5 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -24,21 +24,19 @@ Add the "Inter" font to your project's `index.html` file:
24
24
  <link rel="preconnect" href="https://rsms.me/" /><link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
25
25
  ```
26
26
 
27
- Import the Tailwind Config and use it to extend your project's `tailwind.config.ts` file:
27
+ Use the Squirrel Tailwind configuration as a `preset` in your project's `tailwind.config.cjs` file:
28
28
 
29
29
  ```js
30
- import { squirrelTailwindConfig } from '@pequity/squirrel';
31
- import type { Config } from 'tailwindcss';
30
+ /** @type {import('@pequity/squirrel').SquirrelTailwindConfig} */
32
31
 
33
- export default {
34
- ...squirrelTailwindConfig,
32
+ module.exports = {
33
+ presets: [require('@pequity/squirrel/tailwind/config.js')],
35
34
  content: [
36
35
  './index.html',
37
36
  './src/**/*.{vue,js,ts,jsx,tsx,mdx}',
38
37
  './node_modules/@pequity/squirrel/dist/**/*.{vue,js,ts,jsx,tsx,mdx}',
39
38
  ],
40
- } satisfies Config;
41
-
39
+ };
42
40
  ```
43
41
 
44
42
  Import and use the components you need in your Vue 3 project:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "packageManager": "pnpm@8.9.2",
6
6
  "scripts": {
7
7
  "preinstall": "npx only-allow pnpm",
@@ -27,9 +27,9 @@
27
27
  "exports": {
28
28
  ".": {
29
29
  "types": "./dist/squirrel/index.d.ts",
30
- "import": "./dist/squirrel.es.js"
30
+ "import": "./dist/squirrel.es.js",
31
+ "require": "./dist/squirrel.cjs.js"
31
32
  },
32
- "./tailwind/config.js": "./squirrel/tailwind/config.js",
33
33
  "./assets/squirrel.css": "./dist/style.css"
34
34
  },
35
35
  "main": "./dist/squirrel.cjs.js",