Skip to content

Commit

Permalink
fix root exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Mar 1, 2023
1 parent d1d9d04 commit ae12e44
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# changelog

## 0.7.4

- fix root exports to not use `$lib`
([commit](https://github.com/feltjs/util/commit/8a7b3b0e16908b27f52563c9b3151eda47615ba5))

## 0.7.3

- publish everything from the root
Expand Down
2 changes: 1 addition & 1 deletion src/lib/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const gen: Gen = ({originId, log}) => {
.map((file) => {
if (file.endsWith('.ts')) {
if (file.endsWith('index.ts')) return '';
return `export * from '$${file.slice(0, -3)}';`;
return `export * from '.${file.slice(3, -3)}';`;
} else {
log.warn('unknown file', file);
return '';
Expand Down
48 changes: 24 additions & 24 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
// generated by /src/lib/index.gen.ts

export * from '$lib/array';
export * from '$lib/async';
export * from '$lib/counter';
export * from '$lib/dom';
export * from '$lib/error';
export * from '$lib/function';
export * from '$lib/id';
export * from '$lib/json';
export * from '$lib/log';
export * from '$lib/map';
export * from '$lib/maths';
export * from '$lib/object';
export * from '$lib/obtainable';
export * from '$lib/path';
export * from '$lib/path-parsing';
export * from '$lib/print';
export * from '$lib/process';
export * from '$lib/random';
export * from '$lib/random-alea';
export * from '$lib/result';
export * from '$lib/regexp';
export * from '$lib/string';
export * from '$lib/timings';
export * from '$lib/types';
export * from './array';
export * from './async';
export * from './counter';
export * from './dom';
export * from './error';
export * from './function';
export * from './id';
export * from './json';
export * from './log';
export * from './map';
export * from './maths';
export * from './object';
export * from './obtainable';
export * from './path';
export * from './path-parsing';
export * from './print';
export * from './process';
export * from './random';
export * from './random-alea';
export * from './result';
export * from './regexp';
export * from './string';
export * from './timings';
export * from './types';

// generated by /src/lib/index.gen.ts

0 comments on commit ae12e44

Please sign in to comment.