Skip to content

Commit 5cf1bef

Browse files
authored
chore(core): Rename entry point to main.ts (#125)
1 parent 3a4c90b commit 5cf1bef

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

examples/symbolPlugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@examples/symbol-plugin",
33
"private": true,
4-
"main": "./dist/index.js",
5-
"types": "./dist/index.d.ts",
4+
"main": "./dist/main.js",
5+
"types": "./dist/main.d.ts",
66
"scripts": {
77
"build": "tsc -p tsconfig.prod.json",
88
"compile": "tsc"

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ declare module "@assertive-ts/core" {
188188
}
189189
```
190190

191-
> **Note:** 3rd-party libraries should do this on their types entry point (index.d.ts), this way the interface is automatically extended when their plugin is passed to the `usePlugin(..)` function.
191+
> **Note:** 3rd-party libraries should do this on their types entry point (e.g. main.d.ts), this way the interface is automatically extended when their plugin is passed to the `usePlugin(..)` function.
192192
193193
### How to...
194194

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"type-safety",
1414
"typescript"
1515
],
16-
"main": "./dist/index.js",
17-
"types": "./dist/index.d.ts",
16+
"main": "./dist/main.js",
17+
"types": "./dist/main.d.ts",
1818
"files": [
1919
"dist/",
2020
"src/"
File renamed without changes.

packages/core/test/lib/ArrayAssertion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { expect } from "../../src";
21
import { ArrayAssertion } from "../../src/lib/ArrayAssertion";
32
import { NumberAssertion } from "../../src/lib/NumberAssertion";
43
import { UnsupportedOperationError } from "../../src/lib/errors/UnsupportedOperationError";
54
import { TypeFactories } from "../../src/lib/helpers/TypeFactories";
5+
import { expect } from "../../src/main";
66

77
import assert, { AssertionError } from "assert";
88

packages/core/test/lib/expect.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { expect } from "../../src";
21
import { ArrayAssertion } from "../../src/lib/ArrayAssertion";
32
import { Assertion } from "../../src/lib/Assertion";
43
import { BooleanAssertion } from "../../src/lib/BooleanAssertion";
@@ -9,6 +8,7 @@ import { NumberAssertion } from "../../src/lib/NumberAssertion";
98
import { ObjectAssertion } from "../../src/lib/ObjectAssertion";
109
import { PromiseAssertion } from "../../src/lib/PromiseAssertion";
1110
import { StringAssertion } from "../../src/lib/StringAssertion";
11+
import { expect } from "../../src/main";
1212

1313
import assert from "assert";
1414

packages/core/test/index.test.ts renamed to packages/core/test/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { assert as libAssert, assertThat, expect, TypeFactories } from "../src";
1+
import { assert as libAssert, assertThat, expect, TypeFactories } from "../src/main";
22

33
import assert from "assert";
44

5-
describe("[Unit] index.test.ts", () => {
5+
describe("[Unit] main.test.ts", () => {
66
context("expect", () => {
77
it("is exposed to the API", () => {
88
assert.ok(expect);

packages/core/typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
33
"cleanOutputDir": true,
4-
"entryPoints": ["src/index.ts"],
4+
"entryPoints": ["src/main.ts"],
55
"entryPointStrategy": "expand",
66
"gitRevision": "main",
77
"githubPages": false,

0 commit comments

Comments
 (0)