chore: update package.jsons to allow import of themselves
This is needed by tooling like Rollup, when used in conjunction
with the latest Node 12.x and 14.x branches.
MODIFY
packages/harden/package.json
packages/harden/package.json
"module": "./src/main.js",
"types": "index.d.ts",
"exports": {
+ "./package.json": "./package.json",
+ ".": {
"import": "./src/main.js",
"require": "./dist/harden.cjs",
"browser": "./dist/harden.umd.js"
+ }
},
"scripts": {
"prepublish": "yarn clean && yarn build",

MODIFY
packages/make-hardener/package.json
packages/make-hardener/package.json
"browser": "./dist/make-hardener.umd.js",
"unpkg": "./dist/make-hardener.umd.js",
"exports": {
+ "./package.json": "./package.json",
+ ".": {
"import": "./src/main.js",
"require": "./dist/make-hardener.cjs",
"browser": "./dist/make-hardener.umd.js"
+ }
},
"scripts": {
"prepublish": "yarn clean && yarn build",

MODIFY
packages/make-importer/package.json
packages/make-importer/package.json
"module": "./dist/make-importer.esm.js",
"unpkg": "./dist/make-importer.umd.js",
"exports": {
+ "./package.json": "./package.json",
+ ".": {
"import": "./src/main.js",
"require": "./dist/make-importer.cjs",
"browser": "./dist/make-importer.umd.js"
+ }
},
"files": [
"src",

MODIFY
packages/ses/package.json
packages/ses/package.json
"types": "./index.d.ts",
"unpkg": "./dist/ses.umd.js",
"exports": {
+ "./package.json": "./package.json",
+ ".": {
"import": "./src/main.js",
"require": "./dist/ses.cjs",
"browser": "./dist/ses.umd.js"
+ }
},
"scripts": {
"prepublish": "yarn clean && yarn build",

MODIFY
packages/transform-module/package.json
packages/transform-module/package.json
"browser": "./dist/transform-module.umd.js",
"unpkg": "./dist/transform-module.umd.js",
"exports": {
+ "./package.json": "./package.json",
+ ".": {
"import": "./src/main.js",
"require": "./dist/transform-module.cjs",
"browser": "./dist/transform-module.umd.js"
+ }
},
"scripts": {
"clean": "rm -rf dist",

chore: update package.jsons to allow import of themselves (#394)

This is needed by tooling like Rollup, when used in conjunction
with the latest Node 12.x and 14.x branches.