create-tampermonkey-typescript 1.2.2 → 1.2.4

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.
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ const defaultDevDeps = [
19
19
  const defaultDeps = [];
20
20
  const baseTsConfig = {
21
21
  compilerOptions: {
22
- types: ['vite/client', 'node'],
22
+ types: ['vite/client', 'node', 'tampermonkey'],
23
23
  target: 'ES2022',
24
24
  module: 'ESNext',
25
25
  moduleResolution: 'bundler',
@@ -42,7 +42,7 @@ const availableFeatures = [
42
42
  name: 'React',
43
43
  description: 'Adds react support to the project',
44
44
  directory: path.join(TEMPLATES_DIR, 'react'),
45
- tsConfigModifier: (config) => (config.compilerOptions.jsx = 'react-jsx'),
45
+ tsConfigModifier: (config) => (config.compilerOptions.jsx = 'react'),
46
46
  devDependencies: ['react', 'react-dom', '@types/react', '@types/react-dom'],
47
47
  },
48
48
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tampermonkey-typescript",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "CLI tool for generating a TamperMonkey script project written in typescript which is transpiled to JavaScript to be ran in the browser",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/neth392/create-tampermonkey-typescript",
@@ -211,7 +211,21 @@ const App = () => (
211
211
 
212
212
  ```
213
213
 
214
- For more information, see the [Tailwind CSS docs](https://tailwindcss.com/docs).
214
+ ### IMPORTANT
215
+ There is a chance that simply using `@import "tailwindcss";` in your styles will break the page's native styling.
216
+ In order to prevent this and utilize tailwind's utilities in your script's own UI, you can scope tailwind to your
217
+ root container like so in `styles.css` (only applicable in v4).
218
+
219
+ ```css
220
+ @layer theme, base, components, utilities;
221
+ @import "tailwindcss/theme.css" layer(theme);
222
+
223
+ #your-root-id {
224
+ @tailwind utilities;
225
+ }
226
+ ```
227
+
228
+ For more information on Tailwind, see the [Tailwind CSS docs](https://tailwindcss.com/docs).
215
229
 
216
230
  ---
217
231