diff --git a/package.json b/package.json index 48598e82..3dad19e0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1", "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1", "format": "prettier --write --cache --cache-strategy metadata . !dist", - "prepare": "npm run build", + "prepare": "if [ $(basename $(dirname $PWD)) = 'node_modules' ]; then npm run build; fi", "tsn": "ts-node -r tsconfig-paths/register", "lint": "eslint --ext ts,js .", "fix": "eslint --fix --ext ts,js ." @@ -41,7 +41,6 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-unused-imports": "^2.0.0", "jest": "^29.4.0", - "orb-billing": "file:.", "prettier": "rattrayalex/prettier#postfix-ternaries", "ts-jest": "^29.1.0", "ts-morph": "^19.0.0", @@ -58,6 +57,10 @@ "./shims/web.js", "./shims/web.mjs" ], + "imports": { + "orb-billing": ".", + "orb-billing/*": "./src/*" + }, "exports": { "./_shims/auto/*": { "deno": { diff --git a/yarn.lock b/yarn.lock index 5963fa0f..e7599f83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3148,21 +3148,6 @@ optionator@^0.9.3: prelude-ls "^1.2.1" type-check "^0.4.0" -"orb-billing@file:.": - version "1.28.1" - dependencies: - "@types/node" "^18.11.18" - "@types/node-fetch" "^2.6.4" - "@types/qs" "^6.9.7" - abort-controller "^3.0.0" - agentkeepalive "^4.2.1" - digest-fetch "^1.3.0" - form-data-encoder "1.7.2" - formdata-node "^4.3.2" - node-fetch "^2.6.7" - qs "^6.10.3" - web-streams-polyfill "^3.2.1" - outdent@0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/outdent/-/outdent-0.8.0.tgz#2ebc3e77bf49912543f1008100ff8e7f44428eb0"