-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from emdgroup/feat/typescript-compat
build cjs and esm files and upgrade to latest typescript version
- Loading branch information
Showing
10 changed files
with
156 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ docs/ | |
dist/ | ||
node_modules/ | ||
*.tgz | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"loader": "ts-node/esm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"name": "@emdgroup/dynamodb-paginator", | ||
"version": "2.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"version": "2.1.0", | ||
"main": "dist/cjs/index.js", | ||
"exports": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"types": "dist/cjs/index.d.ts", | ||
"type": "module", | ||
"repository": "https://github.com/emdgroup/dynamodb-paginator.git", | ||
"author": "Moritz Onken <[email protected]>", | ||
"license": "Apache-2.0", | ||
|
@@ -22,24 +27,25 @@ | |
"@aws-sdk/util-dynamodb": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node12": "^1.0.9", | ||
"@types/mocha": "^9.0.0", | ||
"@tsconfig/node14": "^1.0.0", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^16.3.1", | ||
"mocha": "^9.0.2", | ||
"ts-node": "^10.1.0", | ||
"typedoc": "^0.22.0", | ||
"typedoc-github-wiki-theme": "^1.0.0", | ||
"typedoc-plugin-markdown": "^3.10.3", | ||
"typescript": "^4.3.5" | ||
"mocha": "^10.0.0", | ||
"ts-node": "^10.9.0", | ||
"typedoc": "^0.23.0", | ||
"typedoc-github-wiki-theme": "^1.0.1", | ||
"typedoc-plugin-markdown": "^3.13.0", | ||
"typescript": "^4.8.0" | ||
}, | ||
"engines": { | ||
"node": ">= 12" | ||
}, | ||
"scripts": { | ||
"prepack": "yarn docs && rm -rf dist && tsc", | ||
"prepack": "yarn docs && rm -rf dist && yarn build", | ||
"build": "tsc && tsc --module commonjs --outDir dist/cjs", | ||
"docs": "yarn --silent docs:build && yarn --silent docs:merge", | ||
"docs:build": "rm -rf docs README.md && yarn --silent typedoc --hideInPageTOC --excludeNotDocumented --disableSources --theme github-wiki src/index.ts", | ||
"docs:merge": "ts-node bin/merge-docs", | ||
"test": "mocha --bail --watch-files '**/*.ts' --extension ts --require ts-node/register --timeout 60000 'src/**/*.spec.ts'" | ||
"docs:merge": "node --loader=ts-node/esm bin/merge-docs.ts", | ||
"test": "mocha --bail --watch-files '**/*.ts' --extension ts --timeout 60000 'src/**/*.spec.ts'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{ | ||
"extends": "@tsconfig/node12/tsconfig.json", | ||
"extends": "@tsconfig/node14/tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"declaration": true | ||
"outDir": "dist/esm", | ||
"declaration": true, | ||
"moduleResolution": "node", | ||
"module": "esnext" | ||
}, | ||
"include": ["src/index.ts", "src/util.ts"] | ||
} |
Oops, something went wrong.