Skip to content

Commit

Permalink
fix: rewrite imports from lib to es6 in es6 output
Browse files Browse the repository at this point in the history
closes #46, #49
  • Loading branch information
Lars Kinn Ekroll authored and raveclassic committed Aug 11, 2020
1 parent 23a8362 commit c6899d8
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 5 deletions.
87 changes: 84 additions & 3 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"prettier": "prettier --list-different \"./src/**/*.ts\"",
"prettier:fix": "prettier --write \"./src/**/*.ts\"",
"prepublishOnly": "npm run test && npm run build",
"postbuild": "import-path-rewrite",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"version": "npm run changelog && git add CHANGELOG.md"
},
Expand All @@ -22,6 +23,7 @@
"@devexperts/lint": "^0.29.1",
"@types/jest": "^22.2.3",
"conventional-changelog-cli": "^2.0.21",
"import-path-rewrite": "github:gcanti/import-path-rewrite",
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"prettier": "^1.17.1",
Expand All @@ -34,7 +36,7 @@
"dependencies": {
"fp-ts": "^2.0.0",
"io-ts": "^2.0.0",
"io-ts-types": "^0.5.0",
"io-ts-types": "^0.5.7",
"tslib": "^1.9.3"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/remote-data-io.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RemoteData, RemoteFailure, RemoteInitial, RemotePending, RemoteProgress, RemoteSuccess } from './remote-data';
import { optionFromNullable } from 'io-ts-types/lib/optionFromNullable';
import { literal, number, type, Type, union } from 'io-ts';
import { literal, number, type, Type, union } from 'io-ts/lib/index';

export type JSONRemoteProgress = {
loaded: number;
Expand Down
1 change: 1 addition & 0 deletions tsconfig.es6.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.build.json",
"compilerOptions": {
"outDir": "./es6",
"target": "es6",
"module": "es6"
}
}

0 comments on commit c6899d8

Please sign in to comment.