mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Build types
This commit is contained in:
parent
971abf0cf3
commit
ec879ccbfc
3 changed files with 7 additions and 3 deletions
1
packages/webamp/.gitignore
vendored
1
packages/webamp/.gitignore
vendored
|
|
@ -5,3 +5,4 @@
|
|||
/coverage
|
||||
/examples/webpack/bundle.js
|
||||
**/__diff_output__/
|
||||
/types
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
"dist/webamp/webamp-lazy.js.map",
|
||||
"index.d.ts"
|
||||
],
|
||||
"types": "./types/js/webamp.d.ts",
|
||||
"browser": "dist/webamp-browser/webampBrowser.js",
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
|
|
@ -51,7 +52,7 @@
|
|||
"build": "parcel build --target demo-site",
|
||||
"build-library": "parcel build --target webamp-browser --target webamp-browser-min --target webamp-lazy-browser --target webamp-lazy-browser-min --reporter @parcel/reporter-bundle-analyzer",
|
||||
"move-library": "node scripts/moveLibrary.js",
|
||||
"prepublishOnly": "npm run build-library && npm run move-library",
|
||||
"prepublishOnly": "npm run build-library && npm run move-library && npm run type-check",
|
||||
"serve": "http-server ./dist/demo-site",
|
||||
"start": "parcel demo/index.html",
|
||||
"test": "jest --config=config/jest.unit.js",
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@
|
|||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"declarationDir": "./types",
|
||||
"pretty": true,
|
||||
"types": ["react/experimental", "react-dom/experimental", "jest"]
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules", "demo/built"]
|
||||
"exclude": ["node_modules", "demo/built", "types"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue