@symbo.ls/shorthand 2.34.35 → 3.2.7

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
@@ -2,26 +2,39 @@
2
2
  "name": "@symbo.ls/shorthand",
3
3
  "description": "Shorthand syntax transpiler for Symbols properties",
4
4
  "author": "symbo.ls",
5
- "version": "2.34.35",
5
+ "version": "3.2.7",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "type": "module",
8
- "module": "src/index.js",
9
- "main": "src/index.js",
10
- "exports": "./src/index.js",
8
+ "module": "./dist/esm/index.js",
9
+ "main": "./dist/cjs/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/esm/index.js",
13
+ "require": "./dist/cjs/index.js",
14
+ "browser": "./dist/iife/index.js",
15
+ "default": "./dist/esm/index.js"
16
+ }
17
+ },
11
18
  "source": "src/index.js",
12
19
  "publishConfig": {},
13
20
  "scripts": {
14
21
  "test": "node --experimental-vm-modules ../../node_modules/.bin/jest",
15
22
  "copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
16
- "build:cjs": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild ./src/*.js --target=node16 --format=cjs --outdir=dist/cjs",
17
- "build": "npm run build:cjs",
18
- "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
23
+ "build:cjs": "cross-env NODE_ENV=$NODE_ENV esbuild src/*.js --target=node18 --format=cjs --outdir=dist/cjs --define:process.env.NODE_ENV=process.env.NODE_ENV",
24
+ "build": "node ../../build/build.js",
25
+ "prepublish": "npm run build && npm run copy:package:cjs",
26
+ "build:esm": "cross-env NODE_ENV=$NODE_ENV esbuild src/*.js --target=es2020 --format=esm --outdir=dist/esm --define:process.env.NODE_ENV=process.env.NODE_ENV",
27
+ "build:iife": "cross-env NODE_ENV=$NODE_ENV esbuild src/index.js --bundle --target=es2020 --format=iife --global-name=SmblsShorthand --outfile=dist/iife/index.js --define:process.env.NODE_ENV=process.env.NODE_ENV"
19
28
  },
20
29
  "files": [
21
- "src",
22
30
  "dist",
23
- "docs"
31
+ "*.js",
32
+ "src"
24
33
  ],
25
34
  "license": "ISC",
26
- "gitHead": "0be12bcdd99c265fdeded6d756a1a3616a943ffc"
35
+ "gitHead": "0be12bcdd99c265fdeded6d756a1a3616a943ffc",
36
+ "browser": "./dist/iife/index.js",
37
+ "unpkg": "./dist/iife/index.js",
38
+ "jsdelivr": "./dist/iife/index.js",
39
+ "sideEffects": false
27
40
  }
@@ -1,4 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "main": "index.js"
4
- }