malinajs 0.7.4 → 0.7.6

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/malina-esbuild.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const { build } = require('esbuild');
2
- const { derver } = require('derver');
3
2
  const malina = require('malinajs');
4
3
  const fsp = require('fs/promises');
5
4
  const fs = require('fs');
@@ -20,6 +19,7 @@ const derverConfig = fs.existsSync(derverConfigPath) ? require(derverConfigPath)
20
19
  if(!module.parent){
21
20
 
22
21
  if(process.env.WATCH){
22
+ const { derver } = require('derver');
23
23
  esbuild({
24
24
  minify: false,
25
25
  incremental: true
@@ -64,7 +64,7 @@ function malinaPlugin(options={}){
64
64
  name: 'malina-plugin',
65
65
  setup(build) {
66
66
  build.onResolve({ filter: /^malinajs$/ }, async (args) => {
67
- const runtime = await build.resolve('malinajs/runtime.js', {resolveDir: args.resolveDir});
67
+ const runtime = await build.resolve('malinajs/runtime.js', {resolveDir: args.resolveDir, kind: args.kind});
68
68
  return {
69
69
  path: runtime.path,
70
70
  sideEffects: false
@@ -127,4 +127,4 @@ async function esbuild(options={}){
127
127
  };
128
128
 
129
129
  return build(options);
130
- }
130
+ }
package/malina.js CHANGED
@@ -6865,7 +6865,7 @@
6865
6865
  });
6866
6866
  }
6867
6867
 
6868
- const version = '0.7.4';
6868
+ const version = '0.7.6';
6869
6869
 
6870
6870
 
6871
6871
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "npm run build_runtime && rollup -c",