@ivuorinen/browserslist-config 0.2.9 → 0.3.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.
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ivuorinen/browserslist-config",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "ivuorinen's shareable configuration for Browserslist.",
5
+ "type": "module",
5
6
  "author": {
6
7
  "name": "Ismo Vuorinen",
7
8
  "url": "https://github.com/ivuorinen"
@@ -13,9 +14,16 @@
13
14
  "node": ">=18"
14
15
  },
15
16
  "files": [
16
- "index.js",
17
+ "index.cjs",
18
+ "wrapper.mjs",
17
19
  "scripts/*"
18
20
  ],
21
+ "main": "index.cjs",
22
+ "module": "wrapper.mjs",
23
+ "exports": {
24
+ "import": "./wrapper.mjs",
25
+ "require": "./index.cjs"
26
+ },
19
27
  "homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/browserslist-config#readme",
20
28
  "keywords": [
21
29
  "browserslist-config",
@@ -24,7 +32,6 @@
24
32
  "ivuorinen"
25
33
  ],
26
34
  "license": "MIT",
27
- "main": "index.js",
28
35
  "publishConfig": {
29
36
  "access": "public"
30
37
  },
@@ -33,11 +40,11 @@
33
40
  "url": "https://github.com/ivuorinen/base-configs.git"
34
41
  },
35
42
  "scripts": {
36
- "postinstall": "node scripts/postinstall.js"
43
+ "postinstall": "node scripts/postinstall.cjs"
37
44
  },
38
45
  "dependencies": {
39
- "@ivuorinen/config-checker": "^1.1.4",
40
- "browserslist": "4.23.2"
46
+ "@ivuorinen/config-checker": "^1.1.5",
47
+ "browserslist": "4.23.3"
41
48
  },
42
- "gitHead": "ab6ed16b78db199f7272259673e23195d6e4b9ca"
49
+ "gitHead": "48856d9c71d7199f53fa83dfbbeac1378e6dce0a"
43
50
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  const fs = require('fs')
4
4
  const path = require('path')
5
+ // noinspection NpmUsedModulesInstalled
5
6
  const process = require('process')
6
7
  const checkConfig = require('@ivuorinen/config-checker')
7
8
  const foundConfig = checkConfig('browserslist')
package/wrapper.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import config from './index.cjs'
2
+ export default config
File without changes