adapt-cli 3.1.1 → 3.1.2
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.
|
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.
|
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.
|
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) {
|