setup-tailwind-rn
Advanced tools
+12
-1
@@ -24,2 +24,13 @@ #!/usr/bin/env node | ||
| const tailwindConfig = ` | ||
| module.exports = { | ||
| content: [], | ||
| theme: { | ||
| extend: {}, | ||
| }, | ||
| plugins: [], | ||
| corePlugins: require('tailwind-rn/unsupported-core-plugins'), | ||
| } | ||
| `.trimStart(); | ||
| const tasks = new Listr([ | ||
@@ -54,3 +65,3 @@ { | ||
| task: async () => { | ||
| await execa(useYarn ? 'yarn' : 'npx', ['tailwindcss', 'init']); | ||
| await fs.default.writeFile('tailwind.config.js', tailwindConfig); | ||
| await fs.default.writeFile('input.css', '@tailwind utilities;\n'); | ||
@@ -57,0 +68,0 @@ await fs.default.writeFile('tailwind.css', '\n'); |
+1
-1
| { | ||
| "name": "setup-tailwind-rn", | ||
| "version": "1.0.2", | ||
| "version": "1.1.0", | ||
| "description": "Add Tailwind to your React Native project", | ||
@@ -5,0 +5,0 @@ "author": "Vadim Demedes <vadimdemedes@hey.com>", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5467
3.6%160
6.67%