@primer/behaviors 0.0.0-202201852029 → 0.0.0-202201881944

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 (1) hide show
  1. package/package.json +10 -8
package/package.json CHANGED
@@ -1,34 +1,36 @@
1
1
  {
2
2
  "name": "@primer/behaviors",
3
- "version": "0.0.0-202201852029",
3
+ "version": "0.0.0-202201881944",
4
4
  "description": "Shared behaviors for JavaScript components",
5
+ "type": "module",
5
6
  "main": "lib/index.js",
6
7
  "module": "lib-esm/index.js",
7
8
  "exports": {
8
9
  ".": {
10
+ "types": "./lib/index.d.ts",
9
11
  "node": "./lib/index.js",
10
- "default": "./lib-esm/index.js",
11
- "types": "./lib/index.d.ts"
12
+ "default": "./lib-esm/index.js"
12
13
  },
13
14
  "./utils": {
15
+ "types": "./lib/utils/index.d.ts",
14
16
  "node": "./lib/utils/index.js",
15
- "default": "./lib-esm/utils/index.js",
16
- "types": "./lib/utils/index.d.ts"
17
+ "default": "./lib-esm/utils/index.js"
17
18
  }
18
19
  },
19
20
  "files": [
20
21
  "dist",
21
22
  "utils",
22
23
  "lib",
23
- "lib-esm"
24
+ "lib-esm",
25
+ "lib/utils"
24
26
  ],
25
27
  "sideEffects": [
26
28
  "dist/focus-zone.js",
27
29
  "dist/focus-trap.js"
28
30
  ],
29
31
  "scripts": {
30
- "build:esm": "cross-env BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir 'lib/esm' --source-maps",
31
- "build:cjs": "cross-env BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'lib/cjs' --source-maps",
32
+ "build:cjs": "cross-env BABEL_MODULE=commonjs babel src --out-dir lib --extensions '.js,.ts,.jsx,.tsx'",
33
+ "build:esm": "babel src --out-dir lib-esm --extensions '.js,.ts,.jsx,.tsx'",
32
34
  "lint": "eslint src/",
33
35
  "test": "npm run jest && npm run lint",
34
36
  "test:watch": "jest --watch",