New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kaizen/package-bundler

Package Overview
Dependencies
Maintainers
10
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaizen/package-bundler - npm Package Compare versions

Comparing version 0.0.0-canary-stable-bundler-20240515064749 to 0.0.0-canary-style-inject-dist-script-20240521010011

dist/presets/shared-ui/bin/addBuildTools.js

5

dist/presets/shared-ui/plugins-shared-ui.js

@@ -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 @@ }),

6

dist/presets/shared-ui/rollup-tailwind.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc