diff --git a/package.json b/package.json index 26d9f05..5fdccd6 100644 --- a/package.json +++ b/package.json @@ -2,17 +2,13 @@ "name": "snabbdom-selector", "version": "1.2.1", "description": "Snabbdom CSS-Selector", - "main": "lib/commonjs/index.js", - "jsnext:main": "lib/es2015/index.js", - "module": "lib/es2015/index.js", - "typings": "lib/es2015/index.d.ts", + "main": "lib/index.js", + "typings": "lib/index.d.ts", "scripts": { "test:lint": "tslint src/*.ts src/**/*.ts", "test:unit": "cross-env TS_NODE_PROJECT=./test/tsconfig.json mocha -r ts-node/register test/*.ts", "test": "npm run test:lint && npm run test:unit", - "build:commonjs": "tsc -P tsconfig.commonjs.json", - "build:es2015": "tsc -P tsconfig.json", - "build": "npm run build:commonjs && npm run build:es2015" + "build": "tsc -P tsconfig.json" }, "repository": { "type": "git", diff --git a/tsconfig.commonjs.json b/tsconfig.commonjs.json deleted file mode 100644 index 52ba14e..0000000 --- a/tsconfig.commonjs.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "lib": [ - "dom", - "es2015" - ], - "moduleResolution": "node", - "module": "commonjs", - "target": "es5", - "noImplicitAny": true, - "sourceMap": true, - "noUnusedParameters": true, - "strictNullChecks": true, - "types": [], - "outDir": "lib/commonjs" - }, - "files": [ - "custom-typings/cssauron.d.ts", - "src/index.ts" - ] -} diff --git a/tsconfig.json b/tsconfig.json index af4c8f0..80513d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,17 +3,17 @@ "declaration": true, "lib": [ "dom", - "es5" + "es2015" ], "moduleResolution": "node", - "module": "es2015", - "target": "es2015", + "module": "commonjs", + "target": "es5", "noImplicitAny": true, "sourceMap": true, "noUnusedParameters": true, "strictNullChecks": true, "types": [], - "outDir": "lib/es2015" + "outDir": "lib" }, "files": [ "custom-typings/cssauron.d.ts",