Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Move utilities to @proc7ts/primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed May 31, 2020
1 parent 155e560 commit c29734f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import ts from 'rollup-plugin-typescript2';
import typescript from 'typescript';
import pkg from './package.json';

const externals = Object.keys(pkg.dependencies);

function external(id) {
return externals.some(ext => (id + '/').startsWith(ext + '/'));
}

export default {
plugins: [
commonjs(),
Expand All @@ -18,6 +24,7 @@ export default {
sourcemaps(),
],
input: './src/index.ts',
external,
output: [
{
file: pkg.main,
Expand Down
2 changes: 1 addition & 1 deletion src/call-thru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @packageDocumentation
* @module @proc7ts/call-thru
*/
import { noop } from '@proc7ts/primitives';
import { CallChain } from './call-chain';
import { noop } from './misc';
import { isNextCall, NextCall__symbol } from './next-call';
/** @hidden */
import Args = CallChain.Args;
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from './call-chain';
export * from './call-thru';
export * from './misc';
export * from './next-call';
export * from './passes';

0 comments on commit c29734f

Please sign in to comment.