Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
build(*): FIx build
Browse files Browse the repository at this point in the history
Fixes the same error as reported [here](parcel-bundler/parcel#1158). Also ignores some TS warnings.
  • Loading branch information
nokome committed Sep 5, 2019
1 parent 44e07ff commit 35da3cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -8,9 +8,10 @@
"main": "./dist/index.js",
"scripts": {
"dev": "parcel ./src/demo/index.html --open",
"build": "parcel build ./src/**/*.css ./src/**/*.ts && tsc --emitDeclarationOnly",
"build": "parcel build ./src/{common,themes}/**/*.{css,ts} && tsc --emitDeclarationOnly",
"watch": "parcel watch ./src/**/*.css ./src/**/*.ts",
"pages": "parcel build ./src/demo/index.html -d pages --public-url .",
"clean": "rm -rf .cache dist pages",
"semantic-release": "semantic-release"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/demo/index.ts
Expand Up @@ -44,6 +44,7 @@ if (themeSelect) {
const theme = element.value

// Load the theme's Javascript module and run it's `init()` function
// @ts-ignore
const mod = await modules[theme]
if (mod !== undefined && 'init' in mod) mod.init()

Expand Down
3 changes: 3 additions & 0 deletions src/examples/index.ts
@@ -1,5 +1,8 @@
export const examples: {[key: string]: Promise<any>} = {
// @ts-ignore
'simple': import('./simple.html'),
// @ts-ignore
'article-antibodies': import('./article-antibodies.html'),
// @ts-ignore
'article-drosophila': import('./article-drosophila.html')
}

0 comments on commit 35da3cc

Please sign in to comment.