Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
Maintainers
7
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/create - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

3

changelog.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc