about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-24T13·29+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-24T13·29+0000
commit265b691c9b076d61b1ed59a07b4a84ad6a74e020 (patch)
tree1b670e91251e46ed5315f758861c3bb7d02fd988
parent527aeeeced9fdcc2fc3a6a08c58ceb3a17ae2122 (diff)
Add @types/node to typescript boilerplate
Parcel uses process.env to expose environment variables. Since process.env is a
Node concept and this boilerplate is for TypeScript projects, we need
@types/node to support these Node types.
-rw-r--r--boilerplate/typescript/package.json1
-rw-r--r--boilerplate/typescript/yarn.lock5
2 files changed, 6 insertions, 0 deletions
diff --git a/boilerplate/typescript/package.json b/boilerplate/typescript/package.json
index debc2c53cb2f..fc8ec8c6ebfb 100644
--- a/boilerplate/typescript/package.json
+++ b/boilerplate/typescript/package.json
@@ -7,6 +7,7 @@
     "dev": "npx parcel src/index.html & npx tsc --watch --noEmit"
   },
   "devDependencies": {
+    "@types/node": "^13.9.3",
     "parcel-bundler": "^1.12.4",
     "tailwindcss": "^1.2.0",
     "typescript": "^3.8.3"
diff --git a/boilerplate/typescript/yarn.lock b/boilerplate/typescript/yarn.lock
index 3eb21b652652..09961c3276f3 100644
--- a/boilerplate/typescript/yarn.lock
+++ b/boilerplate/typescript/yarn.lock
@@ -880,6 +880,11 @@
     "@types/react" "*"
     hoist-non-react-statics "^3.3.0"
 
+"@types/node@^13.9.3":
+  version "13.9.3"
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.3.tgz#6356df2647de9eac569f9a52eda3480fa9e70b4d"
+  integrity sha512-01s+ac4qerwd6RHD+mVbOEsraDHSgUaefQlEdBbUolnQFjKwCr7luvAlEwW1RFojh67u0z4OUTjPn9LEl4zIkA==
+
 "@types/prop-types@*":
   version "15.7.3"
   resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"