enforce npm version

This commit is contained in:
Thomas Nordquist
2022-02-27 14:22:22 +01:00
parent 24e9c4cd22
commit d428428a6e
4 changed files with 14 additions and 13 deletions

View File

@@ -10,6 +10,9 @@
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json yarn mochatest", "test": "cross-env TS_NODE_PROJECT=test/tsconfig.json yarn mochatest",
"mochatest": "mocha --require ts-node/register src/**/*.spec.ts" "mochatest": "mocha --require ts-node/register src/**/*.spec.ts"
}, },
"engines": {
"npm": "16"
},
"author": "", "author": "",
"license": "CC-BY-ND-4.0", "license": "CC-BY-ND-4.0",
"dependencies": { "dependencies": {
@@ -89,4 +92,4 @@
"peerDependencies": { "peerDependencies": {
"electron": "^17" "electron": "^17"
} }
} }

View File

@@ -17,12 +17,11 @@ module.exports = {
splitChunks: { splitChunks: {
chunks: 'all', chunks: 'all',
minSize: 30000, minSize: 30000,
maxSize: 0,
minChunks: 1, minChunks: 1,
maxAsyncRequests: 5, maxAsyncRequests: 5,
maxInitialRequests: 3, maxInitialRequests: 3,
automaticNameDelimiter: '~', automaticNameDelimiter: '~',
name: true, // name: true,
cacheGroups: { cacheGroups: {
vendors: { vendors: {
test: /[\\/]node_modules[\\/](react|react-dom|@material-ui|popper\.js|react|react-redux|prop-types|jss|redux|scheduler|react-transition-group)[\\/]/, test: /[\\/]node_modules[\\/](react|react-dom|@material-ui|popper\.js|react|react-redux|prop-types|jss|redux|scheduler|react-transition-group)[\\/]/,
@@ -48,7 +47,6 @@ module.exports = {
resolve: { resolve: {
// Add '.ts' and '.tsx' as resolvable extensions. // Add '.ts' and '.tsx' as resolvable extensions.
extensions: ['.ts', '.mjs', '.m.js', '.tsx', '.js', '.json', '.node'], extensions: ['.ts', '.mjs', '.m.js', '.tsx', '.js', '.json', '.node'],
// alias: { url: false }
}, },
module: { module: {
rules: [ rules: [
@@ -56,15 +54,9 @@ module.exports = {
{ {
test: /\.tsx?$/, test: /\.tsx?$/,
loader: 'ts-loader', loader: 'ts-loader',
// options: {
// reportFiles: [
// "src/**/*.{ts,tsx}",
// "../backend/src/**/*.{ts,tsx}"
// ]
// }
}, },
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
// { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' }, { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
{ {
test: /\.css$/, test: /\.css$/,
use: ['style-loader', 'css-loader'], use: ['style-loader', 'css-loader'],

View File

@@ -11,6 +11,9 @@
"debug": "ts-node --inspect ./src/index.ts", "debug": "ts-node --inspect ./src/index.ts",
"postinstall": "yarn build" "postinstall": "yarn build"
}, },
"engines": {
"npm": "16"
},
"author": "", "author": "",
"license": "CC-BY-ND-4.0", "license": "CC-BY-ND-4.0",
"nyc": { "nyc": {
@@ -41,4 +44,4 @@
"lowdb": "^1.0.0", "lowdb": "^1.0.0",
"mqtt": "^3.0.0" "mqtt": "^3.0.0"
} }
} }

View File

@@ -3,6 +3,9 @@
"version": "0.4.0-beta1", "version": "0.4.0-beta1",
"description": "Explore your message queues", "description": "Explore your message queues",
"main": "dist/src/electron.js", "main": "dist/src/electron.js",
"engines": {
"npm": "16"
},
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"test": "yarn test:app && yarn test:backend", "test": "yarn test:app && yarn test:backend",
@@ -113,4 +116,4 @@
"sha1": "^1.1.1", "sha1": "^1.1.1",
"yarn-run-all": "^3.1.1" "yarn-run-all": "^3.1.1"
} }
} }