@unocss/scope 0.58.9 → 0.59.0

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 (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.d.cts +4 -0
  3. package/package.json +10 -4
package/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = () => {
1
+ exports.default = () => {
2
2
  throw new Error('getUnocssScope() is a compile macro but get called directly, have you include this file to UnoCSS\'s target')
3
3
  }
package/index.d.cts ADDED
@@ -0,0 +1,4 @@
1
+ declare function getUnocssScope(): string
2
+
3
+ // eslint-disable-next-line no-restricted-syntax
4
+ export = getUnocssScope
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/scope",
3
- "version": "0.58.9",
3
+ "type": "module",
4
+ "version": "0.59.0",
4
5
  "description": "Placeholder for UnoCSS scope import",
5
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
7
  "license": "MIT",
@@ -11,9 +12,14 @@
11
12
  },
12
13
  "exports": {
13
14
  ".": {
14
- "types": "./index.d.ts",
15
- "import": "./index.mjs",
16
- "require": "./index.cjs"
15
+ "import": {
16
+ "types": "./index.d.ts",
17
+ "default": "./index.mjs"
18
+ },
19
+ "require": {
20
+ "types": "./index.d.cts",
21
+ "default": "./index.cjs"
22
+ }
17
23
  }
18
24
  },
19
25
  "main": "./index.cjs",