Skip to content

Commit

Permalink
Fix dual export support (#17)
Browse files Browse the repository at this point in the history
* Add cjs

Make sure the extension is correct.

* 0.6.0
  • Loading branch information
pspeter3 authored Feb 15, 2021
1 parent daeed8e commit 062a0b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "airtable-lite",
"version": "0.5.0",
"version": "0.6.0",
"description": "Light weight type safe Airtable API client",
"type": "module",
"main": "./dist/cjs/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
"require": "./dist/index.cjs"
},
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"docs": "typedoc --out docs src/index.ts",
"fix": "npm run fix:lint && npm run fix:format",
"test": "npm run test:format && npm run test:lint && npm run test:spec",
"build:esm": "tsc --declaration",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:esm": "tsc",
"build:cjs": "tsc --target esnext --module commonjs src/index.ts && mv src/index.js dist/index.cjs",
"fix:format": "prettier --write 'src/**/*'",
"fix:lint": "eslint 'src/**/*' --fix",
"test:format": "prettier --check 'src/**/*'",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "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. */
Expand Down

0 comments on commit 062a0b8

Please sign in to comment.