Skip to content

Commit 0d37f12

Browse files
committed
Reverted to unified build
1 parent 3799aa0 commit 0d37f12

File tree

9 files changed

+16
-70
lines changed

9 files changed

+16
-70
lines changed

.npmignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ babel-register.js
1010
.DS_Store
1111
.mocharc.json
1212
.nycrc
13-
libs
14-
utils
13+
libs/*
14+
utils/*
1515
tsconfig*
1616
fixup.sh
1717
index.ts

fixup.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

index.cts

Lines changed: 0 additions & 3 deletions
This file was deleted.

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,4 +673,4 @@ class ImageKit {
673673
}
674674
}
675675

676-
export default ImageKit;
676+
export = ImageKit;

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@
22
"name": "imagekit",
33
"version": "4.0.0",
44
"description": "Offical NodeJS SDK for ImageKit.io integration",
5-
"main": "./dist/cjs/index.cjs",
6-
"module": "./dist/esm/index.js",
7-
"exports": {
8-
"import": "./dist/esm/index.js",
9-
"require": "./dist/cjs/index.cjs"
10-
},
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
117
"scripts": {
12-
"compile": "concurrently 'yarn:compile:cjs' 'yarn:compile:esm' 'yarn:compile:types' && yarn compile:fixup",
13-
"compile:fixup": "./fixup.sh",
14-
"compile:cjs": "rm -rf dist/cjs & tsc -p tsconfig.cjs.json",
15-
"compile:esm": "rm -rf dist/esm & tsc -p tsconfig.esm.json",
16-
"compile:types": "rm -rf dist/types & tsc -p tsconfig.types.json",
8+
"compile": "rm -rf dist/ & tsc -p tsconfig.json",
179
"test": "export NODE_ENV=test; nyc ./node_modules/mocha/bin/mocha --exit -t 40000 tests/*.js;ex=$?;unset NODE_ENV; exit $ex;",
1810
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
1911
"prepack": "npm run compile"

tsconfig.cjs.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

tsconfig.esm.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

tsconfig.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Basic Options */
6-
// "incremental": true, /* Enable incremental compilation */
7-
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
6+
// "incremental": true, /* Enable incremental compilation */
7+
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
88
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
99
// "lib": [], /* Specify library files to be included in the compilation. */
1010
// "allowJs": true, /* Allow javascript files to be compiled. */
1111
// "checkJs": true, /* Report errors in .js files. */
1212
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
13+
"declaration": true, /* Generates corresponding '.d.ts' file. */
1414
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1515
// "sourceMap": true, /* Generates corresponding '.map' file. */
1616
// "outFile": "./", /* Concatenate and emit output to single file. */
17-
// "outDir": "./dist", /* Redirect output structure to the directory. */
17+
"outDir": "./dist", /* Redirect output structure to the directory. */
1818
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
1919
// "composite": true, /* Enable project compilation */
2020
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
2121
// "removeComments": true, /* Do not emit comments to output. */
2222
// "noEmit": true, /* Do not emit outputs. */
23-
"importHelpers": true, /* Import emit helpers from 'tslib'. */
24-
"downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
23+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
24+
"downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
2525
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
2626

2727
/* Strict Type-Checking Options */
2828
"strict": true, /* Enable all strict type-checking options. */
29-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30-
"strictNullChecks": true, /* Enable strict null checks. */
29+
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30+
"strictNullChecks": true, /* Enable strict null checks. */
3131
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3232
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
3333
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
@@ -43,11 +43,11 @@
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
4444

4545
/* Module Resolution Options */
46-
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
46+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
4747
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
4848
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4949
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
50-
"typeRoots": ["./types"], /* List of folders to include type definitions from. */
50+
"typeRoots": ["./types"], /* List of folders to include type definitions from. */
5151
// "types": [], /* Type declaration files to be included in compilation. */
5252
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5353
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */

tsconfig.types.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)