@architect/create
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,6 +5,7 @@ # Architect Create changelog | ||
## [1.0.3] 2019-10-18 | ||
## [1.0.3 - 1.0.4] 2019-10-18 | ||
### Added | ||
- `/public` no longer generated if `@static` `folder` is defined | ||
- Reintroduces backwards compatible `arc init` invocation from `@architect/architect` | ||
@@ -11,0 +12,0 @@ |
{ | ||
"name": "@architect/create", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Idempotently initialize Architect projects", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
"test:unit": "tape test/**/*-test.js | tap-spec", | ||
"lint": "npx eslint ." | ||
"lint": "eslint ." | ||
}, | ||
@@ -19,0 +19,0 @@ "license": "Apache-2.0", |
@@ -54,5 +54,8 @@ let {readArc, updater} = require('@architect/utils') | ||
// generate ./public with minimal set of static assets | ||
if (arc.static) | ||
// only generate ./public with minimal set of static assets if 'folder' is not defined | ||
let hasFolder = p=> Array.isArray(p) && p[0].toLowerCase() === 'folder' | ||
let genPublic = arc.static && arc.static.some(hasFolder) === false | ||
if (genPublic) { | ||
functions = functions.concat(assets.bind({}, {folder})) | ||
} | ||
@@ -59,0 +62,0 @@ // generate minimal lambda functions |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43148
765
2