create-catalyst-app 0.0.1-beta.0 → 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.mjs +2 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-catalyst-app",
3
3
  "bin": "scripts/cli.mjs",
4
- "version": "0.0.1-beta.0",
4
+ "version": "0.0.1-beta.1",
5
5
  "description": "cli package to scaffold Catalyst application",
6
6
  "main": "index.js",
7
7
  "scripts": {
package/scripts/cli.mjs CHANGED
@@ -103,9 +103,7 @@ const program = new Commander.Command(packageJson.name)
103
103
 
104
104
 
105
105
  function packNpmPackage (packageName, packageVersion, tempDir) {
106
- const tarballFileName = `${packageName
107
- .substring(1)
108
- .replace("/", "-")}-${packageVersion}.tgz`;
106
+ const tarballFileName = `${packageName}-${packageVersion}.tgz`;
109
107
  const tarballFilePath = path.join(tempDir, tarballFileName);
110
108
 
111
109
  try {
@@ -123,6 +121,7 @@ const program = new Commander.Command(packageJson.name)
123
121
  // Function to create a temporary directory
124
122
  function createTempDir() {
125
123
  const tempDir = fs.mkdtempSync(path.join(process.cwd(), "temp-"));
124
+ console.log("temp dir is ===>",tempDir)
126
125
  return tempDir;
127
126
  }
128
127