unplugin-atscript 0.0.15 → 0.0.17

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/dist/index.cjs CHANGED
@@ -30,11 +30,11 @@ const fs_promises = __toESM(require("fs/promises"));
30
30
  const unplugin = __toESM(require("unplugin"));
31
31
 
32
32
  //#region packages/unplugin/src/index.ts
33
- const anscriptPluginFactory = () => {
33
+ const atscriptPluginFactory = () => {
34
34
  const root = process.cwd();
35
- let anscriptConfig = new Promise((resolve) => {
35
+ let atscriptConfig = new Promise((resolve) => {
36
36
  (0, __atscript_core.resolveConfigFile)(root).then((p) => {
37
- (0, __atscript_core.loadConfig)(path.default.join(root, p)).then(resolve);
37
+ (0, __atscript_core.loadConfig)(p).then(resolve);
38
38
  });
39
39
  });
40
40
  let repo;
@@ -46,7 +46,7 @@ const anscriptPluginFactory = () => {
46
46
  async load(id) {
47
47
  if (id.endsWith(".as")) {
48
48
  if (!repo) {
49
- const config = await anscriptConfig;
49
+ const config = await atscriptConfig;
50
50
  if (!config.plugins) config.plugins = [(0, __atscript_typescript.default)()];
51
51
  repo = new __atscript_core.AtscriptRepo(root, config);
52
52
  }
@@ -62,10 +62,10 @@ const anscriptPluginFactory = () => {
62
62
  }
63
63
  };
64
64
  };
65
- const asPlugin = /* #__PURE__ */ (0, unplugin.createUnplugin)(anscriptPluginFactory);
65
+ const asPlugin = /* #__PURE__ */ (0, unplugin.createUnplugin)(atscriptPluginFactory);
66
66
  var src_default = asPlugin;
67
67
 
68
68
  //#endregion
69
- exports.anscriptPluginFactory = anscriptPluginFactory
70
69
  exports.asPlugin = asPlugin
70
+ exports.atscriptPluginFactory = atscriptPluginFactory
71
71
  exports.default = src_default
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as unplugin from 'unplugin';
2
2
  import { UnpluginFactory } from 'unplugin';
3
3
 
4
- declare const anscriptPluginFactory: UnpluginFactory<undefined>;
4
+ declare const atscriptPluginFactory: UnpluginFactory<undefined>;
5
5
  declare const asPlugin: unplugin.UnpluginInstance<undefined, boolean>;
6
6
 
7
- export { anscriptPluginFactory, asPlugin, asPlugin as default };
7
+ export { asPlugin, atscriptPluginFactory, asPlugin as default };
package/dist/index.mjs CHANGED
@@ -5,11 +5,11 @@ import { readFile } from "fs/promises";
5
5
  import { createUnplugin } from "unplugin";
6
6
 
7
7
  //#region packages/unplugin/src/index.ts
8
- const anscriptPluginFactory = () => {
8
+ const atscriptPluginFactory = () => {
9
9
  const root = process.cwd();
10
- let anscriptConfig = new Promise((resolve) => {
10
+ let atscriptConfig = new Promise((resolve) => {
11
11
  resolveConfigFile(root).then((p) => {
12
- loadConfig(path.join(root, p)).then(resolve);
12
+ loadConfig(p).then(resolve);
13
13
  });
14
14
  });
15
15
  let repo;
@@ -21,7 +21,7 @@ const anscriptPluginFactory = () => {
21
21
  async load(id) {
22
22
  if (id.endsWith(".as")) {
23
23
  if (!repo) {
24
- const config = await anscriptConfig;
24
+ const config = await atscriptConfig;
25
25
  if (!config.plugins) config.plugins = [ts()];
26
26
  repo = new AtscriptRepo(root, config);
27
27
  }
@@ -37,8 +37,8 @@ const anscriptPluginFactory = () => {
37
37
  }
38
38
  };
39
39
  };
40
- const asPlugin = /* #__PURE__ */ createUnplugin(anscriptPluginFactory);
40
+ const asPlugin = /* #__PURE__ */ createUnplugin(atscriptPluginFactory);
41
41
  var src_default = asPlugin;
42
42
 
43
43
  //#endregion
44
- export { anscriptPluginFactory, asPlugin, src_default as default };
44
+ export { asPlugin, atscriptPluginFactory, src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-atscript",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Atscript: Configuration and build plugins.",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -37,8 +37,8 @@
37
37
  "license": "ISC",
38
38
  "dependencies": {
39
39
  "unplugin": "^2.1.2",
40
- "@atscript/core": "^0.0.15",
41
- "@atscript/typescript": "^0.0.15"
40
+ "@atscript/core": "^0.0.17",
41
+ "@atscript/typescript": "^0.0.17"
42
42
  },
43
43
  "devDependencies": {
44
44
  "vitest": "^3.0.0"