Build types

This commit is contained in:
Jordan Eldredge 2023-02-05 10:54:50 -08:00
parent 971abf0cf3
commit ec879ccbfc
3 changed files with 7 additions and 3 deletions

View file

@ -5,3 +5,4 @@
/coverage
/examples/webpack/bundle.js
**/__diff_output__/
/types

View file

@ -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",

View file

@ -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"]
}