From 35da3ccbec17980d6bdcd4d116b282ba22fbb1f4 Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Thu, 5 Sep 2019 19:01:30 +1200 Subject: [PATCH] build(*): FIx build Fixes the same error as reported [here](https://github.com/parcel-bundler/parcel/issues/1158). Also ignores some TS warnings. --- package.json | 3 ++- src/demo/index.ts | 1 + src/examples/index.ts | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a382e91cf..70d57464b 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/demo/index.ts b/src/demo/index.ts index adcb12a65..b7458aa68 100644 --- a/src/demo/index.ts +++ b/src/demo/index.ts @@ -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() diff --git a/src/examples/index.ts b/src/examples/index.ts index 435ce41af..0d83fcfe2 100644 --- a/src/examples/index.ts +++ b/src/examples/index.ts @@ -1,5 +1,8 @@ export const examples: {[key: string]: Promise} = { + // @ts-ignore 'simple': import('./simple.html'), + // @ts-ignore 'article-antibodies': import('./article-antibodies.html'), + // @ts-ignore 'article-drosophila': import('./article-drosophila.html') }