From 0565e6e9582b2e2d0fc5926f2ff65534806d6ab1 Mon Sep 17 00:00:00 2001 From: "jijiaxin.null" Date: Fri, 14 May 2021 18:06:34 +0800 Subject: [PATCH] fix: plugin/template path --- lib/generators/plugin/templates/example/.umirc.js | 2 +- lib/generators/plugin/templates/example/.umirc.ts | 2 +- lib/generators/plugin/templates/test/fixtures/normal/.umirc.js | 2 +- lib/generators/plugin/templates/test/fixtures/normal/.umirc.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/generators/plugin/templates/example/.umirc.js b/lib/generators/plugin/templates/example/.umirc.js index c8fa776..b4993b7 100644 --- a/lib/generators/plugin/templates/example/.umirc.js +++ b/lib/generators/plugin/templates/example/.umirc.js @@ -4,5 +4,5 @@ export default defineConfig({ <% if (withUmiUI) { -%> presets: [require.resolve('@umijs/preset-ui')], <% } -%> - plugins: [require.resolve('../lib')], + plugins: [require.resolve('../src')], }); diff --git a/lib/generators/plugin/templates/example/.umirc.ts b/lib/generators/plugin/templates/example/.umirc.ts index c8fa776..b4993b7 100644 --- a/lib/generators/plugin/templates/example/.umirc.ts +++ b/lib/generators/plugin/templates/example/.umirc.ts @@ -4,5 +4,5 @@ export default defineConfig({ <% if (withUmiUI) { -%> presets: [require.resolve('@umijs/preset-ui')], <% } -%> - plugins: [require.resolve('../lib')], + plugins: [require.resolve('../src')], }); diff --git a/lib/generators/plugin/templates/test/fixtures/normal/.umirc.js b/lib/generators/plugin/templates/test/fixtures/normal/.umirc.js index ead8d16..61509be 100644 --- a/lib/generators/plugin/templates/test/fixtures/normal/.umirc.js +++ b/lib/generators/plugin/templates/test/fixtures/normal/.umirc.js @@ -1,4 +1,4 @@ export default { - plugins: [require.resolve('../../../lib')] + plugins: [require.resolve('../../../src')] } diff --git a/lib/generators/plugin/templates/test/fixtures/normal/.umirc.ts b/lib/generators/plugin/templates/test/fixtures/normal/.umirc.ts index ead8d16..61509be 100644 --- a/lib/generators/plugin/templates/test/fixtures/normal/.umirc.ts +++ b/lib/generators/plugin/templates/test/fixtures/normal/.umirc.ts @@ -1,4 +1,4 @@ export default { - plugins: [require.resolve('../../../lib')] + plugins: [require.resolve('../../../src')] }