Skip to content

Commit

Permalink
build(dist): include the ./dist directory instead of expecting people…
Browse files Browse the repository at this point in the history
… to build it on their side

This kinda sucks, since they're generated files and we don't really want them to be cluttering up
our PRs and such, but oh well.
  • Loading branch information
RobertFischer committed Jul 15, 2020
1 parent c9a8744 commit ac7d622
Show file tree
Hide file tree
Showing 18 changed files with 116 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ buck-out/
*.keystore


dist

.*.swp
8 changes: 8 additions & 0 deletions dist/commitlint.config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const _exports: {
extends: string[];
rules: {
"body-max-line-length": (string | number)[];
};
};
export = _exports;
//# sourceMappingURL=commitlint.config.d.ts.map
1 change: 1 addition & 0 deletions dist/commitlint.config.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/commitlint.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/commitlint.config.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/ensureBuffer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=ensureBuffer.d.ts.map
1 change: 1 addition & 0 deletions dist/ensureBuffer.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/ensureBuffer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/ensureBuffer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference types="node" />
import "./ensureBuffer";
declare type Callback = (err?: Error, buff?: Buffer) => any;
export declare function randomBytes(length: any, cb?: Callback): Buffer;
export default randomBytes;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/release.config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export declare const branches: string[];
export declare const plugins: string[];
export declare const assets: string[];
export declare const preset: string;
export declare const linkCompare: boolean;
export declare const linkReferences: boolean;
export declare const assignees: string[];
//# sourceMappingURL=release.config.d.ts.map
1 change: 1 addition & 0 deletions dist/release.config.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions dist/release.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/release.config.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"repository": "github:RobertFischer/randombytes-pure",
"scripts": {
"test": "tsc --noEmit --project tsconfig.json && jest",
"build": "yarn test && tsc --project tsconfig.json",
"release": "yarn build && semantic-release",
"build": "tsc --project tsconfig.json",
"release": "yarn test && yarn build && semantic-release",
"head:checkCommit": "commitlint --from=HEAD~1",
"pretty": "prettier --insert-pragma --write ./*.ts ./*.js ./*.md",
"postinstall": "yarn build",
"prepublish": "yarn build"
},
"keywords": [
Expand Down Expand Up @@ -75,7 +74,7 @@
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged && yarn test",
"pre-commit": "lint-staged && yarn test && yarn build && ( git add ./dist || echo 'No changes to ./dist' )",
"pre-push": "yarn test"
}
},
Expand Down

0 comments on commit ac7d622

Please sign in to comment.