-
Notifications
You must be signed in to change notification settings - Fork 505
Closed
Description
Current Behavior
Currently the scaffolded package.json looks like this:
{
"source": "src/index.ts",
"main": "index.js",
"umd:main": "dist/podcats.umd.production.js",
"module": "dist/podcats.es.production.js",
"typings": "dist/index.d.ts",
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test"
},
"devDependencies": {
// etc
}
}
when i publish to npm, nothing in the dist
folder gets included. this could partially be because of the .gitignore (in which case we should add an .npmignore?) but i think the "main": "index.js",
line is also a problem. I'm quite inexperienced at this so i'm not sure how to fix but i'm sure you can.
Expected behavior
i can just type 'yarn publish' at the root level and it "just works"
Suggested solution(s)
fix "main" field?
Your environment
Software | Version(s) |
---|---|
TSDX | 0.2.5 |
TypeScript | 3.2.4 |
Browser | chrome |
System:
OS: macOS High Sierra 10.13.4
CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
Memory: 127.70 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.0.0 - /usr/local/bin/node
Yarn: 1.12.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 71.0.3578.98
Safari: 11.1
Metadata
Metadata
Assignees
Labels
No labels