@bamboocss/node 1.39.1 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3495,7 +3495,7 @@ const hasUncompilableSources = (options) => {
3495
3495
  //#endregion
3496
3496
  //#region src/setup-config.ts
3497
3497
  async function setupConfig(cwd, opts = {}) {
3498
- const { force, outExtension, outdir = "styled-system" } = opts;
3498
+ const { force, outExtension, outdir = "styled-system", strictTokens } = opts;
3499
3499
  let configFile;
3500
3500
  try {
3501
3501
  configFile = (0, _bamboocss_config.findConfig)({ cwd });
@@ -3518,6 +3518,10 @@ export default defineConfig({
3518
3518
  ${outExtension ? `\n // The extension for the emitted JavaScript files\noutExtension: '${outExtension}',` : ""}
3519
3519
  // Where to look for your css declarations
3520
3520
  include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
3521
+ ${strictTokens ? `
3522
+ // How much of a style value typescript checks. \`'unknown-tokens'\` rejects a value
3523
+ // that is neither a token nor a keyword the property enumerates, while leaving raw
3524
+ // css values alone; \`true\` allows only tokens.\nstrictTokens: ${JSON.stringify(strictTokens)},\n` : ""}
3521
3525
 
3522
3526
  // Files to exclude
3523
3527
  exclude: [],
package/dist/index.mjs CHANGED
@@ -3481,7 +3481,7 @@ const hasUncompilableSources = (options) => {
3481
3481
  //#endregion
3482
3482
  //#region src/setup-config.ts
3483
3483
  async function setupConfig(cwd, opts = {}) {
3484
- const { force, outExtension, outdir = "styled-system" } = opts;
3484
+ const { force, outExtension, outdir = "styled-system", strictTokens } = opts;
3485
3485
  let configFile;
3486
3486
  try {
3487
3487
  configFile = findConfig({ cwd });
@@ -3504,6 +3504,10 @@ export default defineConfig({
3504
3504
  ${outExtension ? `\n // The extension for the emitted JavaScript files\noutExtension: '${outExtension}',` : ""}
3505
3505
  // Where to look for your css declarations
3506
3506
  include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
3507
+ ${strictTokens ? `
3508
+ // How much of a style value typescript checks. \`'unknown-tokens'\` rejects a value
3509
+ // that is neither a token nor a keyword the property enumerates, while leaving raw
3510
+ // css values alone; \`true\` allows only tokens.\nstrictTokens: ${JSON.stringify(strictTokens)},\n` : ""}
3507
3511
 
3508
3512
  // Files to exclude
3509
3513
  exclude: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/node",
3
- "version": "1.39.1",
3
+ "version": "1.40.0",
4
4
  "description": "The core css bamboo library",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -52,17 +52,17 @@
52
52
  "postcss": "8.5.26",
53
53
  "ts-morph": "28.0.0",
54
54
  "ts-pattern": "5.9.0",
55
- "@bamboocss/config": "1.39.1",
56
- "@bamboocss/core": "1.39.1",
57
- "@bamboocss/generator": "1.39.1",
58
- "@bamboocss/logger": "1.39.1",
59
- "@bamboocss/parser": "1.39.1",
60
- "@bamboocss/plugin-svelte": "1.39.1",
61
- "@bamboocss/plugin-vue": "1.39.1",
62
- "@bamboocss/reporter": "1.39.1",
63
- "@bamboocss/shared": "1.39.1",
64
- "@bamboocss/token-dictionary": "1.39.1",
65
- "@bamboocss/types": "1.39.1"
55
+ "@bamboocss/config": "1.40.0",
56
+ "@bamboocss/core": "1.40.0",
57
+ "@bamboocss/generator": "1.40.0",
58
+ "@bamboocss/logger": "1.40.0",
59
+ "@bamboocss/parser": "1.40.0",
60
+ "@bamboocss/plugin-svelte": "1.40.0",
61
+ "@bamboocss/plugin-vue": "1.40.0",
62
+ "@bamboocss/reporter": "1.40.0",
63
+ "@bamboocss/shared": "1.40.0",
64
+ "@bamboocss/token-dictionary": "1.40.0",
65
+ "@bamboocss/types": "1.40.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/fs-extra": "11.0.4",