create-portfoliable 1.4.3 → 1.4.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "create-portfoliable",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Unified Portfoliable package with initializer and runtime CLI",
5
5
  "private": false,
6
6
  "type": "module",
@@ -0,0 +1,10 @@
1
+ import { describe, expect, it } from 'vitest';
2
+
3
+ import './prism-runtime.js';
4
+
5
+ describe('Prism runtime', () => {
6
+ it('initializes Prism without requiring a default ESM export', () => {
7
+ expect(globalThis.Prism).toBeDefined();
8
+ expect(typeof globalThis.Prism.highlight).toBe('function');
9
+ });
10
+ });
@@ -1,4 +1,6 @@
1
- import Prism from 'prismjs';
1
+ import * as PrismModule from 'prismjs';
2
+
3
+ const Prism = PrismModule.default ?? PrismModule;
2
4
 
3
5
  if (typeof globalThis.Prism === 'undefined') {
4
6
  globalThis.Prism = Prism;