@goast/kotlin 0.4.1 → 0.4.2
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/esm/src/assets.js +1 -1
- package/package.json +1 -1
- package/script/src/assets.js +1 -1
package/esm/src/assets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetManager } from '@goast/core';
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
const scriptUrl = typeof __filename === 'undefined' ? import.meta.url : pathToFileURL(__filename);
|
|
4
|
-
const manager = new AssetManager(new URL('
|
|
4
|
+
const manager = new AssetManager(new URL('../../assets/', scriptUrl));
|
|
5
5
|
export const getAssetFileContent = manager.getAssetFileContent.bind(manager);
|
|
6
6
|
export const copyAssetFile = manager.copyAssetFile.bind(manager);
|
package/package.json
CHANGED
package/script/src/assets.js
CHANGED
|
@@ -4,6 +4,6 @@ exports.copyAssetFile = exports.getAssetFileContent = void 0;
|
|
|
4
4
|
const core_1 = require("@goast/core");
|
|
5
5
|
const node_url_1 = require("node:url");
|
|
6
6
|
const scriptUrl = typeof __filename === 'undefined' ? require("url").pathToFileURL(__filename).href : (0, node_url_1.pathToFileURL)(__filename);
|
|
7
|
-
const manager = new core_1.AssetManager(new URL('
|
|
7
|
+
const manager = new core_1.AssetManager(new URL('../../assets/', scriptUrl));
|
|
8
8
|
exports.getAssetFileContent = manager.getAssetFileContent.bind(manager);
|
|
9
9
|
exports.copyAssetFile = manager.copyAssetFile.bind(manager);
|