Skip to content

Commit

Permalink
perf: Remove cjs version
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Jan 24, 2022
1 parent 9e3f96e commit 0054e27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 89 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Npm
lib
.jest

# Cypress
cypress/fixtures/*
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "@commercelayer/react-components",
"version": "2.53.2",
"description": "The Official Commerce Layer React Components",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"module": "lib/index.js",
"files": [
"lib",
"package.json",
Expand Down Expand Up @@ -44,8 +43,8 @@
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"build": "tsc -b tsconfig.prod.json tsconfig.prod.esm.json --verbose",
"postbuild": "tsc-alias -p tsconfig.prod.json && tsc-alias -p tsconfig.prod.esm.json && minimize-js lib -w -s",
"build": "tsc -b tsconfig.prod.json --verbose",
"postbuild": "tsc-alias -p tsconfig.prod.json && minimize-js lib -w -s",
"start": "NODE_OPTIONS='--inspect' next dev",
"version:fix": "npm version patch",
"version:feat": "npm version minor",
Expand Down
83 changes: 0 additions & 83 deletions tsconfig.prod.esm.json

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"resolveJsonModule": true,
"incremental": true /* Enable incremental compilation */,
"target": "ES2017" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"module": "ES6" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
Expand All @@ -15,7 +15,7 @@
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "lib/cjs" /* Redirect output structure to the directory. */,
"outDir": "lib" /* Redirect output structure to the directory. */,
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
Expand Down

0 comments on commit 0054e27

Please sign in to comment.