Closed davidmurdoch closed 3 years ago
Thank you for the advice.
Is this okay?
"files": [
"package-lock.json",
"package.json",
"src/index.js",
"src/mcl.js",
"src/mcl_c.js",
"src/index.d.ts",
"browser/mcl.js",
"browser/package-lock.json",
"browser/package.json",
"browser/src/index-browser.js",
],
@herumi package-lock.json
is ignored by npm*, and the browser/package.json
doesn't seem necessary unless index-browser.js reads that file for some reason.
One key detail about package-lock.json is that it cannot be published, and it will be ignored if found in any place other than the toplevel package.
from https://docs.npmjs.com/cli/v6/configuring-npm/package-lock-json
You probably need to add "types": "src/index.d.ts"
to your root package.json as well.
Thank you.
browser/package.json
is for React on browser because src/index.js
does not go on it.
I've updated package.json.
Also, looking at the packaged npm module, I think many files are included that shouldn't be (tests, demos, others).