@kaizen/package-bundler
Advanced tools
Comparing version 0.0.0-canary-stable-bundler-20240515064749 to 0.0.0-canary-style-inject-dist-script-20240521010011
@@ -0,4 +1,7 @@ | ||
import path from "path"; | ||
import resolve from "@rollup/plugin-node-resolve"; | ||
import postcss from "rollup-plugin-postcss"; | ||
import { pluginsDefault } from "../default/index.js"; | ||
// This file is added by bin/addBuildTools | ||
const styleInjectPath = path.resolve("src/__build-tools/styleInject.js"); | ||
export const pluginsSharedUi = [ | ||
@@ -16,3 +19,3 @@ // This is needed to ensure that css is compiled correctly. | ||
extract: false, | ||
inject: cssVariableName => `import styleInject from "style-inject";\nstyleInject(${cssVariableName});`, | ||
inject: cssVariableName => `import { styleInject } from "${styleInjectPath}";\nstyleInject(${cssVariableName});`, | ||
extensions: [".scss", ".css"], | ||
@@ -19,0 +22,0 @@ }), |
@@ -0,3 +1,6 @@ | ||
import path from "path"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import postcss from "rollup-plugin-postcss"; | ||
// This file is added by bin/addBuildTools | ||
const styleInjectPath = path.resolve("src/__build-tools/styleInject.js"); | ||
export const rollupTailwindConfig = () => { | ||
@@ -10,7 +13,6 @@ const sharedConfig = { | ||
extract: false, | ||
inject: cssVariableName => `import styleInject from "style-inject";\n\nstyleInject(${cssVariableName});`, | ||
inject: cssVariableName => `import { styleInject } from "${styleInjectPath}";\n\nstyleInject(${cssVariableName});`, | ||
extensions: [".css"], | ||
}), | ||
], | ||
external: ["style-inject"], | ||
}; | ||
@@ -17,0 +19,0 @@ // CommonJS |
@@ -16,3 +16,2 @@ import fs from "fs"; | ||
plugins: [ | ||
// Has to be the same as packages/components/tsconfig.json -> compilerOptions -> paths | ||
alias(config.alias), | ||
@@ -19,0 +18,0 @@ ...(config?.plugins || pluginsDefault), |
{ | ||
"name": "@kaizen/package-bundler", | ||
"version": "0.0.0-canary-stable-bundler-20240515064749", | ||
"version": "0.0.0-canary-style-inject-dist-script-20240521010011", | ||
"description": "Bundles libraries", | ||
@@ -8,5 +8,3 @@ "main": "dist/index.js", | ||
"bin": { | ||
"package-bundler": "./bin/build-commands.sh", | ||
"addTailwindStylesImport": "./bin/addTailwindStylesImport.sh", | ||
"markStyleInjectAsPure": "./bin/markStyleInjectAsPure.sh" | ||
"package-bundler": "./bin/build-commands.sh" | ||
}, | ||
@@ -37,6 +35,11 @@ "files": [ | ||
}, | ||
"dependenciesComments": { | ||
"ts-patch": "Required for typescript-transform-paths" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^4.17.2", | ||
"typescript": "^5.4.5" | ||
"rollup": "^4.17.2" | ||
}, | ||
"devDependenciesComments": { | ||
"typescript": "Installed in root" | ||
}, | ||
"peerDependencies": { | ||
@@ -46,7 +49,4 @@ "postcss": "^8.4.38", | ||
"rollup": "^4.17.2", | ||
"style-inject": "^0.3.0" | ||
"tslib": "^2.6.2" | ||
}, | ||
"peerDependenciesComments": { | ||
"style-inject": "Install in dependencies - used in bundled code" | ||
}, | ||
"scripts": { | ||
@@ -53,0 +53,0 @@ "build": "rm -rf dist && tsc --build" |
@@ -5,3 +5,3 @@ { | ||
"moduleResolution": "node", | ||
"allowJs": true, | ||
"allowJs": false, | ||
"esModuleInterop": true, | ||
@@ -8,0 +8,0 @@ "resolveJsonModule": true, |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18731
1
21
325
0
193
6