Skip to content

Commit

Permalink
configuration updates
Browse files Browse the repository at this point in the history
  • Loading branch information
HelpfulScripts committed Nov 28, 2020
1 parent c567a55 commit bfe15c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ function make(grunt) {
grunt.registerTask('build-css', ['less']);
grunt.registerTask('build-base', ['clean:dist', 'clean:docs', 'build-html', 'build-css', 'copy:bin']);
switch(type) {
case 'node':grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'ts:cjs', 'doc', 'test', 'stage']);
case 'node':grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'ts:cjs', 'doc', 'stage', 'test']);
grunt.registerTask('buildDev', ['build-base', 'ts:esm', 'ts:cjs', 'stage']);
break;
case 'lib': grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'ts:cjs', 'webpack:appDev', 'webpack:appProd', 'doc', 'test', 'stage']);
case 'lib': grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'ts:cjs', 'webpack:appDev', 'webpack:appProd', 'doc', 'stage', 'test']);
grunt.registerTask('buildDev', ['build-base', 'ts:esm', 'ts:cjs', 'webpack:appDev', 'stage']);
break;
case 'app':
default: grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'webpack:appDev', 'webpack:appProd', 'doc', 'test', 'stage']);
default: grunt.registerTask('buildMin', ['build-base', 'ts:esm', 'webpack:appDev', 'webpack:appProd', 'doc', 'stage', 'test']);
grunt.registerTask('buildDev', ['build-base', 'ts:esm', 'webpack:appDev', 'stage']);
}

Expand Down Expand Up @@ -205,7 +205,7 @@ function make(grunt) {
},
ts: {
options: {
target: "es2019", // webpack 4.44 does not yet support a?.b?.c
target: "ESNext", // webpack 4.44 does not yet support a?.b?.c
module: "esnext",
rootDir: "./src",
moduleResolution: "node",
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"version": "2.5.3",
"main": "./bin/cjs/index.js",
"module": "./bin/esm/index.js",
"files": [
"./"
],
"files": ["bin/"],
"types": "./bin/esm/index.d.ts",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -54,7 +52,7 @@
"ts-jest": "26.x.x",
"typedoc": "^0.15.5",
"typescript": "4.x.x",
"terser-webpack-plugin": "^2.3.1",
"terser-webpack-plugin": "5.x.x",
"webpack": "5.x.x"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "esnext",
"module": "esnext",
"allowJs": true,
"rootDir": "./",
Expand Down

0 comments on commit bfe15c8

Please sign in to comment.