-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update monkey-patch ark to only output esm
- Loading branch information
1 parent
26e3aef
commit 690b009
Showing
10 changed files
with
139 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "@urban-ui/flex", | ||
"version": "0.4.0", | ||
"type": "module", | ||
"module": "./dist/index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "biome lint src", | ||
"format": "biome format src --write", | ||
"typecheck": "tsc", | ||
"clean": "del dist", | ||
"dev": "arc watch", | ||
"build": "arc build", | ||
"test": "bun test" | ||
}, | ||
"dependencies": { | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"@stylexjs/stylex": "^0.7.5", | ||
"@urban-ui/theme": "^0.4.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.24.7", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@happy-dom/global-registrator": "^14.7.1", | ||
"@stylexjs/babel-plugin": "^0.7.5", | ||
"@stylexjs/cli": "^0.7.5", | ||
"@stylexjs/dev-runtime": "^0.7.5", | ||
"@stylexjs/nextjs-plugin": "^0.7.5", | ||
"@types/node": "^20.12.2", | ||
"@types/react": "18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@urban-ui/tsconfig": "workspace:*", | ||
"bun-plugin-stylex": "^1.0.3", | ||
"del-cli": "^5.1.0", | ||
"react": "^18.3.0", | ||
"typescript": "^5.4.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import path from 'node:path' | ||
import createStylexPlugin from 'bun-plugin-stylex' | ||
|
||
/** | ||
* Example using bun-plugin-stylex to generate css | ||
* | ||
* The main problem is that this also generates the tokens, which makes sense as it needs those css variables | ||
*/ | ||
|
||
const [stylexPlugin, generateCSS] = createStylexPlugin({ | ||
dev: false, | ||
useCSSLayers: true, | ||
}) | ||
|
||
await Bun.build({ | ||
entrypoints: ['./src/index.ts'], | ||
outdir: './dist2', | ||
minify: false, | ||
plugins: [stylexPlugin], | ||
external: ['@stylexjs/stylex', 'react'], | ||
}) | ||
|
||
const generatedCSS = await generateCSS() | ||
|
||
if (generatedCSS) { | ||
await Bun.write(path.resolve(__dirname, 'dist2/styles.css'), generatedCSS) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters