Skip to content

Commit a4dbb44

Browse files
committedDec 17, 2021
feat(api): fix heroku deployment
1 parent 64ac24e commit a4dbb44

File tree

8 files changed

+14
-141
lines changed

8 files changed

+14
-141
lines changed
 

‎Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: node api/build/app.js

‎api/Procfile

-1
This file was deleted.

‎api/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@
6565
},
6666
"scripts": {
6767
"readme": "node misc/readmeData.js | mustache - misc/README.mustache > README.md",
68-
"start": "node src/app.ts",
69-
"dev": "nodemon src/app.ts"
68+
"start": "node build/app.ts",
69+
"dev": "nodemon src/app.ts",
70+
"build": "rm -rf build && tsc"
7071
},
7172
"publishConfig": {
7273
"access": "public"

‎api/src/api.yml

-128
This file was deleted.

‎api/src/app.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from 'path'
21
import express from 'express'
32
import { forOwn } from 'lodash'
43
import * as uuid from 'uuid'
@@ -30,10 +29,6 @@ app.use(
3029
)
3130
app.use(compression())
3231

33-
app.get('/', (req, res) => {
34-
res.sendFile(path.resolve(__dirname, 'api.yml'))
35-
})
36-
3732
app.get('/status', (req, res) => {
3833
res.status(200).json({
3934
status: 'ok',

‎api/tsconfig.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"target": "es6",
5-
"rootDir": "./",
6-
"esModuleInterop": true
4+
"target": "es5",
5+
"rootDir": "./src",
6+
"outDir": "build",
7+
"esModuleInterop": true,
8+
"skipLibCheck": true,
9+
"forceConsistentCasingInFileNames": true
710
}
811
}

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
"make:init": "make init",
9090
"prepublishOnly": "yarn release:prepare",
9191
"release:prepare": "node scripts/bump-peer-deps.js && yarn changelog",
92-
"version": "yarn release:prepare"
92+
"version": "yarn release:prepare",
93+
"build": "echo 'nothing to do, please use make for available commands'",
94+
"heroku-postbuild": "make packages-build && cd api && yarn build"
9395
},
9496
"workspaces": [
9597
"packages/*",

‎packages/tooltip/src/BasicTooltip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { memo, ReactNode } from 'react'
22
import { useTheme, ValueFormat, useValueFormatter } from '@nivo/core'
33
import { Chip } from './Chip'
44

5-
interface BasicTooltipProps {
5+
export interface BasicTooltipProps {
66
id: ReactNode
77
value?: number | string | Date
88
format?: ValueFormat<number | string | Date>

0 commit comments

Comments
 (0)
Please sign in to comment.