Skip to content

Commit

Permalink
exposing shim module separately
Browse files Browse the repository at this point in the history
Because it is for use in node, and the rest is for use in the browser.
  • Loading branch information
ef4 committed Mar 27, 2021
1 parent a4ce69e commit 6defb91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"repository": "",
"license": "MIT",
"author": "",
"exports": {
"./shim": "./src/shim.js",
"./addon-main": "./src/shim.js"
},
"directories": {
"doc": "doc",
"test": "tests"
Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface ShimOptions {
testApp?: string;
}

export function addonV2toV1Shim(directory: string, options: ShimOptions = {}) {
export function addonV1Shim(directory: string, options: ShimOptions = {}) {
let pkg = JSON.parse(readFileSync(resolve(directory, './package.json'), 'utf8'));
return {
name: pkg.name,
Expand Down

0 comments on commit 6defb91

Please sign in to comment.