Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
Maintainers
6
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 3.2.0-RC.2 to 3.2.0-RC.3

src/cli.js

2

changelog.md

@@ -9,2 +9,4 @@ # Architect Create changelog

- For newly provisioned projects, `us-west-2` with `arm64` is now the default region + architecture; see: #1304
- Breaking change: removed support for `--static` flag / initializing a `public/index.html`-based app
- Default provisioned handler file for Deno is now `mod.ts` (per Deno's guidelines)

@@ -11,0 +13,0 @@ - Stop publishing to the GitHub Package registry

4

package.json
{
"name": "@architect/create",
"version": "3.2.0-RC.2",
"version": "3.2.0-RC.3",
"description": "Idempotently initialize Architect projects",
"main": "src/index.js",
"bin": {
"arc-create": "cli.js"
"arc-create": "src/cli.js"
},

@@ -9,0 +9,0 @@ "repository": {

@@ -21,6 +21,7 @@ let { join } = require('path')

${runtime ? '' : '# '}@aws
${runtime ? `runtime ${runtime}\n` : ''}# profile default
# region us-west-1
`
@aws
# profile default
region us-west-2
architecture arm64
${runtime ? `runtime ${runtime}\n` : ''}`

@@ -27,0 +28,0 @@ writeFileSync(appDotArc, arcFile)

@@ -8,5 +8,5 @@ let { sep } = require('path')

let bootstrap = require('./bootstrap')
let simpleStatic = require('./simple-static')
let writeConfigs = require('./write-configs')
let writePlugin = require('./write-plugin')
let writeFunctions = require('./write-functions')

@@ -31,3 +31,3 @@ let writeStatic = require('./write-static')

module.exports = async function create (params = {}, callback) {
let { install, inventory, runtime, standalone, update } = params
let { install, inventory, plugin, runtime, standalone, update } = params
if (!update) update = updater('Create')

@@ -55,39 +55,38 @@

// Validate the runtime
if (runtime && (runtime !== 'deno' &&
try {
// Validate the runtime
if (runtime && (runtime !== 'deno' &&
!runtimes[runtime] &&
!runtimeList.includes(runtime)) &&
!aliases[runtime]) {
update.error(`Invalid runtime specified: ${runtime}`)
process.exit(1)
}
update.error(`Invalid runtime specified: ${runtime}`)
process.exit(1)
}
// Get the folder name so we know where to inventory
if (params.folder === '/') {
update.error('Please specify a valid project name or path')
process.exit(1)
}
// Get the folder name so we know where to inventory
if (params.folder === '/') {
update.error('Please specify a valid project name or path')
process.exit(1)
}
if (standalone) {
if (standalone) {
// Print banner
banner(version)
}
banner(version)
}
// TODO [DEPRECATE]
if (params.static) {
return simpleStatic()
}
// Establish the project name and intended folder
let { name, folder } = getName(params)
// Establish the project name and intended folder
let { name, folder } = getName(params)
// Get Inventory to determine whether we need to bootstrap a manifest
if (!inventory) {
params.inventory = await _inventory({ cwd: folder })
}
// Get Inventory to determine whether we need to bootstrap a manifest
if (!inventory) {
params.inventory = await _inventory({ cwd: folder })
}
if (plugin) {
return writePlugin(params, callback)
}
// Bootstrap the project on the filesystem, including new dirs, app.arc manifest, etc.
bootstrap({ ...params, name, folder })
// Bootstrap the project on the filesystem, including new dirs, app.arc manifest, etc.
bootstrap({ ...params, name, folder })
try {
// These are the boilerplate-enabled pragmas

@@ -94,0 +93,0 @@ let pragmas = [ 'http', 'events', 'queues', 'scheduled', 'static', 'tables-streams', 'ws', 'customLambdas' ]

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