Skip to content

Commit 6d6045f

Browse files
authored
chore(npm): Change package settings (#38)
* chore(npm): Change package settings * Update .all-contributorsrc contribution types * Fix linter ignore path * Regenerate all-contributors table and fix repo url
1 parent cea2340 commit 6d6045f

File tree

8 files changed

+45
-25
lines changed

8 files changed

+45
-25
lines changed

.all-contributorsrc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"profile": "https://github.com/JoseLion",
1919
"contributions": [
2020
"code",
21-
"maintenance"
21+
"infra",
22+
"maintenance",
23+
"platform",
24+
"test"
2225
]
2326
},
2427
{
@@ -27,7 +30,8 @@
2730
"avatar_url": "https://avatars.githubusercontent.com/u/37427699?v=4",
2831
"profile": "https://github.com/byrpatrick",
2932
"contributions": [
30-
"code"
33+
"code",
34+
"test"
3135
]
3236
},
3337
{
@@ -36,7 +40,8 @@
3640
"avatar_url": "https://avatars.githubusercontent.com/u/60680371?v=4",
3741
"profile": "https://github.com/alejo0o",
3842
"contributions": [
39-
"code"
43+
"code",
44+
"test"
4045
]
4146
},
4247
{
@@ -45,7 +50,8 @@
4550
"avatar_url": "https://avatars.githubusercontent.com/u/77456654?v=4",
4651
"profile": "https://github.com/dalejo96",
4752
"contributions": [
48-
"code"
53+
"code",
54+
"test"
4955
]
5056
},
5157
{
@@ -54,7 +60,8 @@
5460
"avatar_url": "https://avatars.githubusercontent.com/u/22301755?v=4",
5561
"profile": "https://github.com/Alex0jk",
5662
"contributions": [
57-
"code"
63+
"code",
64+
"test"
5865
]
5966
},
6067
{

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Build
2+
build/
23
dist/
34

45
# Dependencies
@@ -12,3 +13,6 @@ node_modules/
1213

1314
# VSCode
1415
.vscode/
16+
17+
# Packages
18+
*.tgz

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
4646
<!-- markdownlint-disable -->
4747
<table>
4848
<tr>
49-
<td align="center"><a href="https://github.com/JoseLion"><img src="https://avatars.githubusercontent.com/u/3087228?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jose Luis Leon</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=JoseLion" title="Code">💻</a> <a href="#maintenance-JoseLion" title="Maintenance">🚧</a></td>
50-
<td align="center"><a href="https://github.com/byrpatrick"><img src="https://avatars.githubusercontent.com/u/37427699?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Byron Motoche</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=byrpatrick" title="Code">💻</a></td>
51-
<td align="center"><a href="https://github.com/alejo0o"><img src="https://avatars.githubusercontent.com/u/60680371?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alejandro Vivanco</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=alejo0o" title="Code">💻</a></td>
52-
<td align="center"><a href="https://github.com/dalejo96"><img src="https://avatars.githubusercontent.com/u/77456654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Villamarin</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=dalejo96" title="Code">💻</a></td>
53-
<td align="center"><a href="https://github.com/Alex0jk"><img src="https://avatars.githubusercontent.com/u/22301755?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alexander Mejía</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=Alex0jk" title="Code">💻</a></td>
49+
<td align="center"><a href="https://github.com/JoseLion"><img src="https://avatars.githubusercontent.com/u/3087228?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jose Luis Leon</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=JoseLion" title="Code">💻</a> <a href="#infra-JoseLion" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-JoseLion" title="Maintenance">🚧</a> <a href="#platform-JoseLion" title="Packaging/porting to new platform">📦</a> <a href="https://github.com/stackbuilders/assertive-ts/commits?author=JoseLion" title="Tests">⚠️</a></td>
50+
<td align="center"><a href="https://github.com/byrpatrick"><img src="https://avatars.githubusercontent.com/u/37427699?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Byron Motoche</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=byrpatrick" title="Code">💻</a> <a href="https://github.com/stackbuilders/assertive-ts/commits?author=byrpatrick" title="Tests">⚠️</a></td>
51+
<td align="center"><a href="https://github.com/alejo0o"><img src="https://avatars.githubusercontent.com/u/60680371?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alejandro Vivanco</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=alejo0o" title="Code">💻</a> <a href="https://github.com/stackbuilders/assertive-ts/commits?author=alejo0o" title="Tests">⚠️</a></td>
52+
<td align="center"><a href="https://github.com/dalejo96"><img src="https://avatars.githubusercontent.com/u/77456654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Villamarin</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=dalejo96" title="Code">💻</a> <a href="https://github.com/stackbuilders/assertive-ts/commits?author=dalejo96" title="Tests">⚠️</a></td>
53+
<td align="center"><a href="https://github.com/Alex0jk"><img src="https://avatars.githubusercontent.com/u/22301755?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alexander Mejía</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=Alex0jk" title="Code">💻</a> <a href="https://github.com/stackbuilders/assertive-ts/commits?author=Alex0jk" title="Tests">⚠️</a></td>
5454
<td align="center"><a href="https://github.com/ChristianSama"><img src="https://avatars.githubusercontent.com/u/43491324?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christian Samaniego</b></sub></a><br /><a href="https://github.com/stackbuilders/assertive-ts/commits?author=ChristianSama" title="Documentation">📖</a></td>
5555
</tr>
5656
</table>

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"name": "assertion-library",
3-
"version": "0.1.0",
4-
"description": "A TypeScript type-safe assertion library",
2+
"name": "assertive-ts",
3+
"version": "0.0.0",
4+
"description": "A type-safe fluent assertion library",
5+
"repository": "[email protected]:stackbuilders/assertive-ts.git",
6+
"author": "Stack Builders <[email protected]>",
7+
"license": "MIT",
58
"main": "./dist/index.js",
69
"types": "./dist/index.d.ts",
7-
"repository": "[email protected]:stackbuilders/assertion-library.git",
8-
"author": "Jose Luis Leon <[email protected]>",
9-
"license": "MIT",
10+
"files": [
11+
"dist/"
12+
],
1013
"scripts": {
14+
"build": "tsc -p tsconfig.prod.json",
1115
"check": "yarn compile && yarn lint && yarn test --forbid-only",
12-
"compile": "tsc",
13-
"lint": "tslint -c tslint.json \"!(dist)/**/*.ts\"",
16+
"compile": "tsc -p tsconfig.json",
17+
"lint": "tslint -c tslint.json \"!(build|dist)/**/*.ts\"",
1418
"test": "cross-env NODE_ENV=test TS_NODE_TRANSPILE_ONLY=true mocha"
1519
},
1620
"devDependencies": {

src/lib/StringAssertion.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,10 @@ export class StringAssertion extends Assertion<string> {
151151
public toStartWith(text: string): this {
152152
const error = new AssertionError({
153153
actual: this.actual,
154-
expected: text,
155154
message: `Expected <${this.actual}> to start with <${text}>`
156155
});
157156
const invertedError = new AssertionError({
158157
actual: this.actual,
159-
expected: text,
160158
message: `Expected <${this.actual}> NOT to start with <${text}>`
161159
});
162160

@@ -176,12 +174,10 @@ export class StringAssertion extends Assertion<string> {
176174
public toEndWith(text: string): this {
177175
const error = new AssertionError({
178176
actual: this.actual,
179-
expected: text,
180177
message: `Expected <${this.actual}> to end with <${text}>`
181178
});
182179
const invertedError = new AssertionError({
183180
actual: this.actual,
184-
expected: text,
185181
message: `Expected <${this.actual}> NOT to end with <${text}>`
186182
});
187183

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"noUncheckedIndexedAccess": true,
1616
"noUnusedLocals": true,
1717
"noUnusedParameters": true,
18-
"outDir": "./dist",
18+
"outDir": "./build",
1919
"removeComments": false,
2020
"skipLibCheck": true,
2121
"sourceMap": true,
@@ -25,6 +25,7 @@
2525
},
2626
"exclude": [
2727
".yarn/*",
28+
"build/*",
2829
"dist/*",
2930
"node_modules/*"
3031
]

tsconfig.prod.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"incremental": false,
5+
"outDir": "./dist"
6+
},
7+
"include": ["src/**/*", "typings/**/*"]
8+
}

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ __metadata:
356356
languageName: node
357357
linkType: hard
358358

359-
"assertion-library@workspace:.":
359+
"assertive-ts@workspace:.":
360360
version: 0.0.0-use.local
361-
resolution: "assertion-library@workspace:."
361+
resolution: "assertive-ts@workspace:."
362362
dependencies:
363363
"@types/mocha": ^9.1.0
364364
"@types/node": ^17.0.15

0 commit comments

Comments
 (0)