diff --git a/.github/actions-scripts/puppeteer.js b/.github/actions-scripts/puppeteer.js index 435558239..266529393 100644 --- a/.github/actions-scripts/puppeteer.js +++ b/.github/actions-scripts/puppeteer.js @@ -3,7 +3,7 @@ const path = require('path'); const { once } = require('events'); const puppeteer = require('puppeteer'); -const pixelmatch = await import('pixelmatch'); +const pixelmatch = import('pixelmatch'); const { PNG } = require('pngjs'); const server = require('../../server'); diff --git a/.github/actions-scripts/selenium.js b/.github/actions-scripts/selenium.js index 08b8e3fdd..5b9d3a30c 100644 --- a/.github/actions-scripts/selenium.js +++ b/.github/actions-scripts/selenium.js @@ -2,7 +2,7 @@ const path = require('path'); const { readFileSync, writeFileSync, mkdirSync } = require('fs'); const { once } = require('events'); -const pixelmatch = await import(('pixelmatch'); +const pixelmatch = import('pixelmatch'); const { PNG } = require('pngjs'); const { Builder, diff --git a/package.json b/package.json index f626966f0..3edb2d79e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "test:unit:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha", "test:e2e": "run-p --race start cypress:run", "js:watch": "cross-env NODE_ENV=development node server.js", - "js:build": "rm -rf public/types ; mkdir -p public/types ; webpack --config webpack.config.prod.js", + "js:build": "webpack --config webpack.config.prod.js", + "js:build-dev": "rm -rf public/types ; mkdir -p public/types ; webpack --config webpack.config.prod.js", "css:watch": "nodemon -e scss -x \"npm run css:build\"", "css:build": "run-s css:sass css:prefix css:min", "css:sass": "sass -I scss src/styles/base.scss public/assets/styles/base.css && sass -I scss src/styles/choices.scss public/assets/styles/choices.css", diff --git a/tsconfig.json b/tsconfig.json index baa7c82a3..cb37cf19d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "declaration": true, "declarationDir": "./public/types/", "declarationMap": true, + "composite": true, "sourceMap": true, "module": "commonjs", "moduleResolution": "node",