mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
use conditional exports in package json, define package type as module
This commit is contained in:
parent
4c3324aea1
commit
ce7427b288
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "cyberchef",
|
||||
"type": "module",
|
||||
"version": "9.20.3",
|
||||
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
||||
"author": "n1474335 <n1474335@gmail.com>",
|
||||
|
@ -27,8 +28,11 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/gchq/CyberChef/"
|
||||
},
|
||||
"main": "src/node/cjs.js",
|
||||
"module": "src/node/index.mjs",
|
||||
"main": "./src/node/wrapper.cjs",
|
||||
"exports": {
|
||||
"import": "./src/node/index.mjs",
|
||||
"require": "./src/node/wrapper.cjs"
|
||||
},
|
||||
"bugs": "https://github.com/gchq/CyberChef/issues",
|
||||
"browserslist": [
|
||||
"Chrome >= 50",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue