-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.6.1 Enhancements #9
Conversation
@@ -12,7 +14,7 @@ | |||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ | |||
// "sourceMap": true, /* Generates corresponding '.map' file. */ | |||
// "outFile": "./", /* Concatenate and emit output to single file. */ | |||
"outDir": "./build" /* Redirect output structure to the directory. */, | |||
// "outDir": "./", /* Redirect output structure to the directory. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran into circular errors in rollup saying that only one of output.dir
or output.file
is permitted in rollup.config.js
, while at the same time output.dir
is required when "ourDir"
is specified in tsconfig.json
. Solved by removing "outDir"
entirely; it gets populated in tsconfig.build.json
instead.
cjs
), bundlers like webpack (esm
), and browser (umd
)/lib/fs
andlib/mem
dirsformat
beingumd
)Breakdown of the current
build
folder:Breakdown of the fields in
package.json
:"bin"
- when you runjsongo
CLI, it resolves to/build/cli
"main"
- when yourequire("jsongo")
in Node, it resolves to/build/lib
"module"
- when youimport jsongo
with a front-end bundler (e.g.webpack
), it resolves to/build/esm
"unpkg"
- when you load jsongo from a CDN, it serves up/build/jsongo.min.js