adapt-cli 3.1.1 → 3.1.3

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.
@@ -161,7 +161,7 @@ export default class Target extends Plugin {
161
161
  const pluginTypeFolder = await this.getTypeFolder()
162
162
  if (this.isLocalSource) {
163
163
  await fs.ensureDir(path.resolve(this.cwd, 'src', pluginTypeFolder))
164
- const pluginPath = path.resolve(this.cwd, 'src', pluginTypeFolder, this.name)
164
+ const pluginPath = path.resolve(this.cwd, 'src', pluginTypeFolder, this.packageName)
165
165
  await fs.rm(pluginPath, { recursive: true, force: true })
166
166
  await fs.copy(this.sourcePath, pluginPath, { recursive: true })
167
167
  const bowerJSON = await fs.readJSON(path.join(pluginPath, 'bower.json'))
@@ -177,7 +177,7 @@ export default class Target extends Plugin {
177
177
  const repoDetails = await this.getRepositoryUrl()
178
178
  if (!repoDetails) throw new Error('Error: Plugin repository url could not be found.')
179
179
  await fs.ensureDir(path.resolve(this.cwd, 'src', pluginTypeFolder))
180
- const pluginPath = path.resolve(this.cwd, 'src', pluginTypeFolder, this.name)
180
+ const pluginPath = path.resolve(this.cwd, 'src', pluginTypeFolder, this.packageName)
181
181
  await fs.rm(pluginPath, { recursive: true, force: true })
182
182
  const url = repoDetails.url.replace(/^git:\/\//, 'https://')
183
183
  try {
@@ -206,7 +206,7 @@ export default class Target extends Plugin {
206
206
  }
207
207
  // bower install
208
208
  const outputPath = path.join(this.cwd, 'src', pluginTypeFolder)
209
- const pluginPath = path.join(outputPath, this.name)
209
+ const pluginPath = path.join(outputPath, this.packageName)
210
210
  try {
211
211
  await fs.rm(pluginPath, { recursive: true, force: true })
212
212
  } catch (err) {
package/lib/logger.js CHANGED
@@ -9,10 +9,10 @@ export default {
9
9
  this.write(args.join(' '))
10
10
  },
11
11
  warn (...args) {
12
- chalk.yellow(...args)
12
+ this.log(chalk.yellow(...args))
13
13
  },
14
14
  error (...args) {
15
- chalk.red(...args)
15
+ this.log(chalk.red(...args))
16
16
  },
17
17
  log (...args) {
18
18
  if (this.isLoggingProgress) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Command line tools for Adapt",
5
5
  "main": "./lib/api.js",
6
6
  "type": "module",