PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.14k stars 350 forks source link

[BUG] `--entry` flag not creating additional entry files in plasmo project #842

Open bnn1 opened 9 months ago

bnn1 commented 9 months ago

What happened?

I've encountered an issue while trying to set up a new project using Plasmo. According to the documentation, the --entry flag can be used with a comma-separated list of entry files to customize the initial project setup. The expected behavior is that specifying this flag should create additional entry files in the project.

However, when I use this flag as documented, it does not create any additional files. I followed the instructions provided, using pnpm, but the result was the same. Here are the commands I used:

pnpm create plasmo --entry=options,newtab,contents/inline my-ext
pnpm create plasmo --entry=options,newtab,contents/inline

The my-ext directory contains these files:

[
  '.cosine',         '.git',
  '.github',         '.gitignore',
  '.prettierrc.mjs', 'README.md',
  'assets',          'node_modules',
  'package.json',    'pnpm-lock.yaml',
  'popup.tsx',       'tsconfig.json',
  'util.ts'
]

Executing the command without out dir results in the same outcome.

Version

Latest

What OS are you seeing the problem on?

Linux

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct