Skip to content

Commit

Permalink
Remove '/js' from npm package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed May 20, 2020
1 parent e21c668 commit 0a99dae
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ target
.gdb_history
tmp
/release-tools
/js
/*.js
/*.d.ts

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@itchio/valet",
"version": "0.10.1",
"description": "butler as a native Node.js addon",
"typings": "js/index.d.ts",
"main": "js/index.js",
"typings": "index.d.ts",
"main": "index.js",
"files": [
"README.md",
"release/**",
Expand Down
4 changes: 0 additions & 4 deletions ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
export * from "./support";
export * from "./client";
export * from "./conversation";
export * from "./messages";
export * as messages from "./messages";

export interface InitOpts {
/** path to DB file */
Expand Down
3 changes: 1 addition & 2 deletions ts/support.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// this file can be imported without pulling in node.js's "net"
// module etc., so it can be used in a browser context for example.
// this file can be imported in a browser context

export enum StandardErrorCode {
ParseError = -32700,
Expand Down
16 changes: 9 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"compilerOptions": {
"outDir": "js",
"rootDir": "ts",
"declaration": true,
"strict": true,
"resolveJsonModule": true
}
"include": ["./ts/**/*"],
"exclude": [],
"compilerOptions": {
"outDir": ".",
"rootDir": "ts",
"declaration": true,
"strict": true,
"resolveJsonModule": true
}
}

0 comments on commit 0a99dae

Please sign in to comment.