File tree
Expand file treeCollapse file tree2 files changed
+13
-2
lines changed Expand file treeCollapse file tree2 files changed
+13
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
|
6 | 6 | "main": "./build/cjs/index.js",
|
7 | 7 | "module": "./build/esm/index.js",
|
8 | 8 | "exports": {
|
9 |
| -"import": "./build/esm/index.js", |
| 9 | +"import": { |
| 10 | +"node": "./build/esm-debug/index.js", |
| 11 | +"default": "./build/esm/index.js" |
| 12 | +}, |
10 | 13 | "require": "./build/cjs/index.js"
|
11 | 14 | },
|
12 | 15 | "types": "build/esm/index.d.ts",
|
|
70 | 73 | "zuul-ngrok": "4.0.0"
|
71 | 74 | },
|
72 | 75 | "scripts": {
|
73 |
| -"compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && cp ./support/package.cjs.json ./build/cjs/package.json && cp ./support/package.esm.json ./build/esm/package.json", |
| 76 | +"compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh", |
74 | 77 | "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
|
75 | 78 | "test:node": "mocha --bail --reporter dot --require test/support/server.js test/index.js",
|
76 | 79 | "test:browser": "zuul test/index.js",
|
|
Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +cp ./support/package.cjs.json ./build/cjs/package.json |
| 4 | +cp ./support/package.esm.json ./build/esm/package.json |
| 5 | + |
| 6 | +cp -r ./build/esm/ ./build/esm-debug/ |
| 7 | + |
| 8 | +sed -i '/debug(/d' ./build/esm/*.js ./build/esm/**/*.js |
You can’t perform that action at this time.
0 commit comments