Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matter/create

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matter/create - npm Package Compare versions

Comparing version 0.11.0-alpha.0-20241027-de3c9d280 to 0.11.0-alpha.0-20241028-39fc76758

dist/esm/build.config.d.ts

2

bin/create.js

@@ -1,2 +0,2 @@

#!/usr/bin/env matter-run
#!/usr/bin/env node
import "../dist/esm/cli.js";
{
"name": "@matter/create",
"version": "0.11.0-alpha.0-20241027-de3c9d280",
"version": "0.11.0-alpha.0-20241028-39fc76758",
"description": "Matter.js skeleton project generator",

@@ -12,2 +12,8 @@ "type": "module",

},
"files": [
"dist/**/*",
"src/**/*",
"LICENSE",
"README.md"
],
"bin": {

@@ -30,3 +36,3 @@ "matter-create": "bin/create.js"

"devDependencies": {
"@matter/tools": "0.11.0-alpha.0-20241027-de3c9d280",
"@matter/tools": "0.11.0-alpha.0-20241028-39fc76758",
"@types/node": "^22.8.1",

@@ -33,0 +39,0 @@ "@types/tar-stream": "^3.1.3"

@@ -52,3 +52,6 @@ /**

// We set the version after build so we don't know actual version here. This placeholder is just used in dev. We
// then replace with the "create" package version on init if it's not a git build
const matterJsVersion = `~${await readFile(project.pkg.workspace.resolve("version.txt"), "utf-8")}`;
const typescriptVersion = project.pkg.findPackage("@matter/tools").json.dependencies.typescript;

@@ -55,0 +58,0 @@

@@ -67,3 +67,3 @@ /**

bigWelcome();
notice(`Initializing project from ${bold(project.template.name)} template...`);
notice(`Creating project from ${bold(project.template.name)} template...`);

@@ -81,3 +81,3 @@ try {

if (doBuild) {
notice(`Building project...`);
notice(`Initializing project...`);

@@ -97,3 +97,5 @@ try {

notice(`${bold("Success!")} Run your new app using ${bold("npm run app")}.`);
const where = project.dest !== "." && project.dest !== process.cwd() ? ` in ${bold(project.dest)}` : "";
notice(`${bold("Success!")} Run your new app using ${bold("npm run app")}${where}.`);
}

@@ -10,3 +10,4 @@ /**

export const TEMPLATE_DIR = resolve(import.meta.dirname, "../templates");
const CREATE_DIR = resolve(import.meta.dirname, "../..");
export const TEMPLATE_DIR = resolve(CREATE_DIR, "dist/templates");

@@ -32,3 +33,8 @@ export interface Template {

const packageJson = JSON.parse(await readFile(resolve(CREATE_DIR, "package.json"), "utf-8")) as { version: string };
if (packageJson.version !== "0.0.0-git") {
config.matterJsVersion = `^${packageJson.version}`;
}
return config;
}

@@ -27,2 +27,3 @@ /**

test: 'echo "Error: no test specified" && exit 1',
clean: "node -e 'fs.rmSync(\"dist\", { recursive: true, force: true })'",
},

@@ -146,3 +147,3 @@ };

function build(this: NewProject) {
execSync(`npm -q install`, { stdio: "inherit", cwd: this.dest });
execSync(`npm install --silent`, { stdio: "inherit", cwd: this.dest });
}
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