Skip to content

Commit

Permalink
[E4E-30]: FIx the lack of a root index.js on build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCleric committed Nov 21, 2021
1 parent 6e745be commit c464ba6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
dist
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const userSearch = (searchPattern: string) => {

## Releasing

Checking in the dist folder is not necessary as it will be built upon npm install by the downstream project.

After making any changes and merging them to main, please do the following:

* Create a new branch from main and run `npm run update:version`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"url": "git+https://github.com/nrccua/apollo-rest-utils.git"
},
"scripts": {
"build": "npm run clean && tsc lib/**/*.ts --excludeFiles lib/**/*.test.ts --outDir dist --esModuleInterop --declaration",
"build": "npm run clean && tsc lib/**/*.ts lib/*.ts --excludeFiles lib/**/*.test.ts --outDir dist --esModuleInterop --declaration",
"clean": "rm -rf dist",
"clean:full": "npm run clean && rm -rf node_modules",
"postinstall": "npm run build",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"include": [
"./**/*",
],
"resolveJsonModule": true,
"target": "es5",
}

0 comments on commit c464ba6

Please sign in to comment.