tailwindcss/package.json
Philipp Spiess 921b4b673b
Use import to load plugins (#14132)
Alternative to #14110

This PR changes the way how we load plugins to be compatible with ES6
async `import`s. This allows us to load plugins even inside the browser
but it comes at a downside: We now have to change the `compile` API to
return a `Promise`...

So most of this PR is rewriting all of the call sites of `compile` to
expect a promise instead of the object.

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2024-08-08 11:49:06 -04:00

64 lines
1.6 KiB
JSON

{
"name": "@tailwindcss/root",
"private": true,
"version": "1.0.0",
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 100,
"plugins": [
"prettier-plugin-organize-imports"
],
"overrides": [
{
"files": [
"tsconfig.json"
],
"options": {
"parser": "jsonc"
}
},
{
"files": [
"integrations/**/*.ts"
],
"options": {
"plugins": [
"prettier-plugin-embed",
"prettier-plugin-organize-imports"
]
}
}
]
},
"scripts": {
"format": "prettier --write .",
"lint": "prettier --check . && turbo lint",
"build": "turbo build --filter=!./playgrounds/* && node ./scripts/pack-packages.mjs",
"dev": "turbo dev --filter=!./playgrounds/*",
"test": "cargo test && vitest run",
"test:integrations": "vitest --root=./integrations --no-file-parallelism",
"test:ui": "pnpm run --filter=tailwindcss test:ui",
"tdd": "vitest",
"bench": "vitest bench",
"version-packages": "node ./scripts/version-packages.mjs",
"vite": "pnpm run --filter=vite-playground dev",
"nextjs": "pnpm run --filter=nextjs-playground dev"
},
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.44.1",
"@types/node": "^20.12.12",
"postcss": "8.4.24",
"postcss-import": "^16.1.0",
"prettier": "^3.2.5",
"prettier-plugin-embed": "^0.4.15",
"prettier-plugin-organize-imports": "^3.2.4",
"tsup": "^8.0.2",
"turbo": "^1.13.3",
"typescript": "^5.4.5",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@9.6.0"
}