@pure-ds/core 0.4.28 → 0.4.31

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.4.28",
4
+ "version": "0.4.31",
5
5
  "description": "Pure Design System - Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,11 +26,11 @@
26
26
  "module": "./public/assets/js/pds.js",
27
27
  "types": "./dist/types/pds.d.ts",
28
28
  "bin": {
29
- "pds-export": "packages/pds-cli/bin/pds-static.js",
30
- "pds-sync-assets": "packages/pds-cli/bin/sync-assets.js",
31
- "pds-build-icons": "packages/pds-cli/bin/pds-build-icons.js",
32
- "pds-setup-copilot": "packages/pds-cli/bin/pds-setup-copilot.js",
33
- "pds-init-config": "packages/pds-cli/bin/pds-init-config.js"
29
+ "pds-export": "packages/pds-cli/bin/pds-static.mjs",
30
+ "pds-sync-assets": "packages/pds-cli/bin/sync-assets.mjs",
31
+ "pds-build-icons": "packages/pds-cli/bin/pds-build-icons.mjs",
32
+ "pds-setup-copilot": "packages/pds-cli/bin/pds-setup-copilot.mjs",
33
+ "pds-init-config": "packages/pds-cli/bin/pds-init-config.mjs"
34
34
  },
35
35
  "exports": {
36
36
  ".": {
@@ -76,11 +76,11 @@
76
76
  "types": "tsc -p tsconfig.json && node scripts/sync-types.mjs",
77
77
  "postinstall": "node packages/pds-cli/bin/postinstall.mjs",
78
78
  "prepds:export": "npm run types",
79
- "pds:export": "node packages/pds-cli/bin/pds-static.js",
80
- "pds:build-icons": "node packages/pds-cli/bin/pds-build-icons.js",
81
- "pds:manifest": "node packages/pds-cli/bin/generate-manifest.js",
82
- "pds:css-data": "node packages/pds-cli/bin/generate-css-data.js",
83
- "pds:dx": "node packages/pds-cli/bin/pds-dx.js",
79
+ "pds:export": "node packages/pds-cli/bin/pds-static.mjs",
80
+ "pds:build-icons": "node packages/pds-cli/bin/pds-build-icons.mjs",
81
+ "pds:manifest": "node packages/pds-cli/bin/generate-manifest.mjs",
82
+ "pds:css-data": "node packages/pds-cli/bin/generate-css-data.mjs",
83
+ "pds:dx": "node packages/pds-cli/bin/pds-dx.mjs",
84
84
  "storybook:generate": "cd packages/pds-storybook && npm run generate-stories",
85
85
  "storybook:dev": "cd packages/pds-storybook && npm run storybook:dev",
86
86
  "storybook:build": "cd packages/pds-storybook && npm run storybook:build"
@@ -555,7 +555,7 @@ async function generateCSSData(targetDir) {
555
555
  export { generateCSSData };
556
556
 
557
557
  // Run if called directly
558
- if (process.argv[1] && process.argv[1].endsWith('generate-css-data.js')) {
558
+ if (process.argv[1] && (process.argv[1].endsWith('generate-css-data.mjs') || process.argv[1].endsWith('generate-css-data.js'))) {
559
559
  const targetDir = process.argv[2] || null;
560
560
  generateCSSData(targetDir).then(success => {
561
561
  process.exit(success ? 0 : 1);
@@ -344,7 +344,7 @@ async function generateManifest(targetDir) {
344
344
  export { generateManifest };
345
345
 
346
346
  // Run if called directly
347
- if (process.argv[1] && process.argv[1].endsWith('generate-manifest.js')) {
347
+ if (process.argv[1] && (process.argv[1].endsWith('generate-manifest.mjs') || process.argv[1].endsWith('generate-manifest.js'))) {
348
348
  const targetDir = process.argv[2] || null;
349
349
  generateManifest(targetDir).then(success => {
350
350
  process.exit(success ? 0 : 1);
@@ -144,7 +144,7 @@ if (process.argv[1]) {
144
144
  const scriptPath = fileURLToPath(import.meta.url);
145
145
  const argPath = process.argv[1];
146
146
  // Check if this is the main module being executed
147
- if (argPath === scriptPath || argPath.endsWith('pds-build-icons.js') || argPath.endsWith('pds-build-icons')) {
147
+ if (argPath === scriptPath || argPath.endsWith('pds-build-icons.mjs') || argPath.endsWith('pds-build-icons.js') || argPath.endsWith('pds-build-icons')) {
148
148
  main();
149
149
  }
150
150
  }
@@ -9,8 +9,8 @@
9
9
  * This provides complete IDE support for consuming projects
10
10
  */
11
11
 
12
- import { generateManifest } from './generate-manifest.js';
13
- import { generateCSSData } from './generate-css-data.js';
12
+ import { generateManifest } from './generate-manifest.mjs';
13
+ import { generateCSSData } from './generate-css-data.mjs';
14
14
 
15
15
  // Colors for terminal output
16
16
  const COLORS = {
@@ -5,7 +5,7 @@
5
5
  * Usage: npx pds-init-config [--force]
6
6
  */
7
7
 
8
- import { ensurePdsConfig } from './postinstall.js';
8
+ import { ensurePdsConfig } from './postinstall.mjs';
9
9
  import { resolve } from 'path';
10
10
 
11
11
  const args = process.argv.slice(2);
@@ -22,9 +22,9 @@ import path from 'path';
22
22
  import { fileURLToPath, pathToFileURL } from 'url';
23
23
 
24
24
  import { discoverWebRoot } from './postinstall.mjs';
25
- import { runPdsBuildIcons } from './pds-build-icons.js';
26
- import { generateManifest } from './generate-manifest.js';
27
- import { generateCSSData } from './generate-css-data.js';
25
+ import { runPdsBuildIcons } from './pds-build-icons.mjs';
26
+ import { generateManifest } from './generate-manifest.mjs';
27
+ import { generateCSSData } from './generate-css-data.mjs';
28
28
  import {
29
29
  resolvePublicAssetDirectory,
30
30
  resolvePublicAssetURL,
@@ -573,7 +573,7 @@ if (process.argv[1]) {
573
573
  const scriptPath = fileURLToPath(import.meta.url);
574
574
  const argPath = process.argv[1];
575
575
  // Check if this is the main module being executed
576
- if (argPath === scriptPath || argPath.endsWith('pds-static.js') || argPath.endsWith('pds-export')) {
576
+ if (argPath === scriptPath || argPath.endsWith('pds-static.mjs') || argPath.endsWith('pds-static.js') || argPath.endsWith('pds-export')) {
577
577
  main();
578
578
  }
579
579
  }
@@ -452,7 +452,7 @@ async function copyPdsAssets() {
452
452
  console.log('📦 To generate static assets run: npm run pds:export');
453
453
  } else {
454
454
  console.log('🚀 Running pds:export automatically...');
455
- const staticModuleUrl = pathToFileURL(path.join(__dirname, 'pds-static.js')).href;
455
+ const staticModuleUrl = pathToFileURL(path.join(__dirname, 'pds-static.mjs')).href;
456
456
  const previousEnv = {
457
457
  PDS_POSTINSTALL: process.env.PDS_POSTINSTALL,
458
458
  PDS_LOG_STREAM: process.env.PDS_LOG_STREAM,
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pure Design System (PDS)
2
2
 
3
- > ⚠️ **Beta Software** - APIs are stabilizing but may still change. Pin versions in production: `"@pure-ds/core": "~0.3.0"`
3
+ > ⚠️ **Beta Software** - APIs are stabilizing but may still change. Pin versions in production: `"@pure-ds/core": "~0.4.30"`
4
4
 
5
5
  [![CI](https://github.com/mvneerven/pure-ds/actions/workflows/ci.yml/badge.svg)](https://github.com/mvneerven/pure-ds/actions/workflows/ci.yml)
6
6
  [![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](#license)
@@ -1889,7 +1889,7 @@ export default {
1889
1889
 
1890
1890
  1. Verify components directory exists
1891
1891
  2. Check import map for `#pds/lit` (required for Lit components - see below)
1892
- 3. Manually sync: `node node_modules/pure-ds/packages/pds-cli/bin/postinstall.js`
1892
+ 3. Manually sync: `node node_modules/pure-ds/packages/pds-cli/bin/postinstall.mjs`
1893
1893
  4. Check browser console for errors
1894
1894
 
1895
1895
  ### Lit Components Not Working
File without changes