Skip to content

Commit

Permalink
⚙️ Chore(packages/myplop): change build config - change copy assets path
Browse files Browse the repository at this point in the history
  • Loading branch information
INeedJobToStartWork committed Jun 15, 2024
1 parent e98086f commit 775ccaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/myplop/config/tsuprc/tsup.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
esbuildPlugins: [
copy({
assets: [
{ from: "./src/templates/configs/*", to: "./templates/configs" }
{ from: "./src/templates/**", to: "./configs" }
// { from: "./package.json", to: "./package.json" }
]
})
Expand Down
3 changes: 1 addition & 2 deletions packages/myplop/config/tsuprc/tsup.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default defineConfig({
{ from: "./package.json", to: "./package.json" },
{ from: "./.npmrc", to: "./.npmrc" },
{ from: "./.npmignore", to: "./.npmignore" },
{ from: "./README.md", to: "./README.md" },
{ from: "./src/templates/configs/*", to: "./templates/configs" }
{ from: "./README.md", to: "./README.md" }
]
})
]
Expand Down
3 changes: 1 addition & 2 deletions packages/myplop/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ process.env.USERPATH = process.cwd();
process.env.PACKAGEPATH = DIRNAME;
process.env.CONFIGPATH = configPath();

const userSystem = process.env.OS;
if (userSystem != "windows") {
if (process.env.OS != "windows") {
console.log(chalk.bgRed(" ERROR "), "Currently Version support only Windows - Sorry");
process.exit(1);
}
Expand Down

0 comments on commit 775ccaa

Please sign in to comment.