Skip to content

Commit

Permalink
build: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
slikts committed Jul 31, 2023
1 parent 4e6aabf commit 7e31d09
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 17 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
"hashing",
"value objects"
],
"type": "module",
"exports": {
".": {
"types": "./dist/tuplerone.d.ts",
"require": "./dist/tuplerone.js",
"import": "./dist/tuplerone.mjs"
},
"./package.json": "./package.json"
"import": "./dist/tuplerone.js",
"require": "./dist/tuplerone.cjs"
}
},
"types": "./dist/tuplerone.d.ts",
"main": "./dist/tuplerone.cjs",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion src/Node.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Node } from './Node';
import { Node } from './Node.ts';

describe('Node', () => {
it('constructs', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/Tuple.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tuple } from './Tuple';
import { Tuple } from './Tuple.ts';

describe(`Tuple`, () => {
const a = Object('a');
Expand Down
2 changes: 1 addition & 1 deletion src/Tuple.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNode, registry } from './graph';
import { getNode, registry } from './graph.ts';

const TupleConstructor = class Tuple<A extends readonly unknown[]> extends Array {
constructor(values: A) {
Expand Down
2 changes: 1 addition & 1 deletion src/deep.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getDeepSymbol } from './deep';
import { getDeepSymbol } from './deep.ts';

describe('DeepCompositeSymbol', () => {
it('returns symbol', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/deep.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSymbol } from './graph';
import { getSymbol } from './graph.ts';

export const getDeepSymbol = (target: unknown): symbol => {
const result = _get(target);
Expand Down
4 changes: 2 additions & 2 deletions src/graph.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getNode, prune, getSymbol, clear } from './graph';
import { Node } from './Node';
import { getNode, prune, getSymbol, clear } from './graph.ts';
import { Node } from './Node.ts';

describe('graph', () => {
afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/graph.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { Tuple } from './Tuple'
import { Node } from './Node';
import { Node } from './Node.ts';

const root = new Node();

Expand Down
2 changes: 1 addition & 1 deletion src/memoize.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { memoize } from './memoize';
import { memoize } from './memoize.ts';

describe('memoize()', () => {
it('returns a function', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/memoize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getNode } from './graph';
import { getNode } from './graph.ts';

const cache = new WeakMap();

Expand Down
6 changes: 3 additions & 3 deletions src/tuplerone.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { Tuple, isRef } from './Tuple';
export { getDeepSymbol } from './deep';
export { memoize } from './memoize';
export { Tuple, isRef } from './Tuple.ts';
export { getDeepSymbol } from './deep.ts';
export { memoize } from './memoize.ts';

0 comments on commit 7e31d09

Please sign in to comment.