pulse-js-framework 1.4.2 → 1.4.3
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/README.md +1 -1
- package/cli/build.js +2 -2
- package/cli/dev.js +3 -3
- package/cli/index.js +1 -1
- package/compiler/transformer.js +1 -1
- package/index.js +1 -1
- package/loader/vite-plugin.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/cli/build.js
CHANGED
|
@@ -120,7 +120,7 @@ function processDirectory(srcDir, outDir) {
|
|
|
120
120
|
|
|
121
121
|
// Rewrite runtime imports
|
|
122
122
|
content = content.replace(
|
|
123
|
-
/from\s+['"]pulse-framework\/runtime['"]/g,
|
|
123
|
+
/from\s+['"]pulse-js-framework\/runtime['"]/g,
|
|
124
124
|
"from './runtime.js'"
|
|
125
125
|
);
|
|
126
126
|
|
|
@@ -168,7 +168,7 @@ ${readRuntimeFile('store.js')}
|
|
|
168
168
|
*/
|
|
169
169
|
function readRuntimeFile(filename) {
|
|
170
170
|
const paths = [
|
|
171
|
-
join(process.cwd(), 'node_modules', 'pulse-framework', 'runtime', filename),
|
|
171
|
+
join(process.cwd(), 'node_modules', 'pulse-js-framework', 'runtime', filename),
|
|
172
172
|
join(dirname(new URL(import.meta.url).pathname), '..', 'runtime', filename)
|
|
173
173
|
];
|
|
174
174
|
|
package/cli/dev.js
CHANGED
|
@@ -79,7 +79,7 @@ export async function startDevServer(args) {
|
|
|
79
79
|
try {
|
|
80
80
|
const source = readFileSync(filePath, 'utf-8');
|
|
81
81
|
const result = compile(source, {
|
|
82
|
-
runtime: '/node_modules/pulse-framework/runtime/index.js'
|
|
82
|
+
runtime: '/node_modules/pulse-js-framework/runtime/index.js'
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
if (result.success) {
|
|
@@ -108,8 +108,8 @@ export async function startDevServer(args) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// Handle node_modules
|
|
111
|
-
if (pathname.startsWith('/node_modules/pulse-framework/')) {
|
|
112
|
-
const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-framework/', ''));
|
|
111
|
+
if (pathname.startsWith('/node_modules/pulse-js-framework/')) {
|
|
112
|
+
const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-js-framework/', ''));
|
|
113
113
|
if (existsSync(modulePath)) {
|
|
114
114
|
const content = readFileSync(modulePath, 'utf-8');
|
|
115
115
|
res.writeHead(200, { 'Content-Type': 'application/javascript' });
|
package/cli/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { existsSync, mkdirSync, writeFileSync, readFileSync, cpSync } from 'fs';
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = dirname(__filename);
|
|
13
13
|
|
|
14
|
-
const VERSION = '1.4.
|
|
14
|
+
const VERSION = '1.4.3';
|
|
15
15
|
|
|
16
16
|
// Command handlers
|
|
17
17
|
const commands = {
|
package/compiler/transformer.js
CHANGED
|
@@ -25,7 +25,7 @@ export class Transformer {
|
|
|
25
25
|
constructor(ast, options = {}) {
|
|
26
26
|
this.ast = ast;
|
|
27
27
|
this.options = {
|
|
28
|
-
runtime: 'pulse-framework/runtime',
|
|
28
|
+
runtime: 'pulse-js-framework/runtime',
|
|
29
29
|
minify: false,
|
|
30
30
|
scopeStyles: true, // Enable CSS scoping by default
|
|
31
31
|
...options
|
package/index.js
CHANGED
package/loader/vite-plugin.js
CHANGED