@zag-js/remove-scroll 0.2.0 → 0.2.1

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/dist/index.js CHANGED
@@ -24,7 +24,7 @@ __export(src_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(src_exports);
26
26
 
27
- // ../dom/dist/index.mjs
27
+ // ../dom/src/platform.ts
28
28
  var isDom = () => typeof window !== "undefined";
29
29
  function getPlatform() {
30
30
  var _a;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../dom/dist/index.mjs
1
+ // ../dom/src/platform.ts
2
2
  var isDom = () => typeof window !== "undefined";
3
3
  function getPlatform() {
4
4
  var _a;
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@zag-js/remove-scroll",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "JavaScript utility to remove scroll on body",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
5
  "keywords": [
9
6
  "js",
10
7
  "utils",
@@ -22,15 +19,28 @@
22
19
  "access": "public"
23
20
  },
24
21
  "devDependencies": {
25
- "@zag-js/dom-utils": "0.2.0"
22
+ "clean-package": "2.2.0",
23
+ "@zag-js/dom-utils": "0.2.2"
26
24
  },
27
25
  "bugs": {
28
26
  "url": "https://github.com/chakra-ui/zag/issues"
29
27
  },
28
+ "clean-package": "../../../clean-package.config.json",
29
+ "main": "dist/index.js",
30
+ "module": "dist/index.mjs",
31
+ "types": "dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.mjs",
36
+ "require": "./dist/index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
30
40
  "scripts": {
31
- "build-fast": "tsup src/index.ts --format=esm,cjs",
41
+ "build-fast": "tsup src",
32
42
  "start": "pnpm build --watch",
33
- "build": "tsup src/index.ts --format=esm,cjs --dts",
43
+ "build": "tsup src --dts",
34
44
  "test": "jest --config ../../../jest.config.js --rootDir tests",
35
45
  "lint": "eslint src --ext .ts,.tsx",
36
46
  "test-ci": "pnpm test --ci --runInBand -u",