Skip to content

Commit

Permalink
Merge pull request #1 from jaredh159/env-test
Browse files Browse the repository at this point in the history
Env test
  • Loading branch information
jaredh159 committed Apr 6, 2020
2 parents aaf55f2 + baf0292 commit 7f16284
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 17 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,9 @@
{
"files.exclude": {
"**/.cache": true,
"**/node_modules": true,
"**/public": true,
"**/*.log": true,
"**/tsconfig.tsbuildinfo": true
}
}
12 changes: 12 additions & 0 deletions package.json
@@ -0,0 +1,12 @@
{
"name": "monorepo-test",
"version": "1.0.0",
"private": true,
"main": "index.js",
"repository": "git@github.com:jaredh159/monorepo-test.git",
"author": "Jared Henderson <jared@netrivet.com>",
"license": "MIT",
"workspaces": [
"packages/*"
]
}
7 changes: 7 additions & 0 deletions packages/hello/functions/env.js
@@ -0,0 +1,7 @@
exports.handler = function (event, context, callback) {
console.log(process.env);
callback(null, {
statusCode: 200,
body: JSON.stringify(process.env, null, 2),
});
};
7 changes: 3 additions & 4 deletions packages/hello/netlify.toml
@@ -1,5 +1,4 @@
[build]
command = "echo $TOP_VAR; echo $BOTH_VAR; pwd; true"

[build.environment]
BOTH_VAR = "BOTH_VAR: defined in subpackage root"
command = ""
publish = "build"
functions = "functions"
13 changes: 0 additions & 13 deletions packages/hello/package-lock.json

This file was deleted.

8 changes: 8 additions & 0 deletions yarn.lock
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


left-pad@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==

0 comments on commit 7f16284

Please sign in to comment.