Skip to content

Commit

Permalink
Merge pull request orizens#187 from robisim74/Building_process
Browse files Browse the repository at this point in the history
Fix ngx-infinite-scroll/index: orizens#162
  • Loading branch information
orizens authored Sep 26, 2017
2 parents 912890d + b6d9905 commit aa6d9ae
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo(chalk.green(`AoT compilation completed`));
/* Creates bundles: ESM/ES5 and UMD bundles */
echo(`Start bundling`);
echo(`Rollup package`);
exec(`rollup -i ${NPM_DIR}/index.js -o ${MODULES_DIR}/${PACKAGE}.js --sourcemap`, {silent: true});
exec(`rollup -i ${NPM_DIR}/${PACKAGE}.js -o ${MODULES_DIR}/${PACKAGE}.js --sourcemap`, {silent: true});
exec(`node scripts/map-sources -f ${MODULES_DIR}/${PACKAGE}.js`);

echo(`Downleveling ES2015 to ESM/ES5`);
Expand Down
1 change: 0 additions & 1 deletion index.ts

This file was deleted.

1 change: 1 addition & 0 deletions ngx-infinite-scroll.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './public_api';
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"compodoc-serve": "compodoc -s",
"transpile": "ngc -p ./tsconfig.json"
},
"typings": "./index.d.ts",
"typings": "./ngx-infinite-scroll.d.ts",
"author": "Oren Farhi (orizens.com)",
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,4 +71,4 @@
"sorcery": "0.10.0",
"yargs": "7.0.2"
}
}
}
2 changes: 1 addition & 1 deletion public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
/**
* Entry point for all public APIs of the package.
*/
export { InfiniteScrollModule } from './src/modules/ngx-infinite-scroll.module';
export * from './src/ngx-infinite-scroll';

10 changes: 5 additions & 5 deletions src/ngx-infinite-scroll.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Public classes.
export {
ContainerRef, InfiniteScrollEvent,
IPositionElements, IPositionStats, IScrollStats, IScrollerConfig, IResolver
} from './models';

export { InfiniteScrollDirective } from './modules/infinite-scroll.directive';
export { PositionResolver } from './services/position-resolver';
export { AxisResolver } from './services/axis-resolver';
export { ScrollRegister } from './services/scroll-register';
export { ScrollResolver } from './services/scroll-resolver';
export { InfiniteScrollModule } from './modules/ngx-infinite-scroll.module';

export {
ContainerRef, InfiniteScrollEvent,
IPositionElements, IPositionStats, IScrollStats, IScrollerConfig, IResolver
} from './models';
2 changes: 1 addition & 1 deletion tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"skipTemplateCodegen": true,
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleOutFile": "ngx-infinite-scroll.js",
"flatModuleId": "ngx-infinite-scroll"
}
}

0 comments on commit aa6d9ae

Please sign in to comment.