unplugin-atscript 0.1.26 → 0.1.27
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/esbuild.cjs +1 -1
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.mjs +2 -2
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.mjs +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +2 -2
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.mjs +2 -2
- package/package.json +8 -8
package/dist/esbuild.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/esbuild.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createEsbuildPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/farm.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/farm.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createFarmPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ const unpluginFactory = (opts) => {
|
|
|
48
48
|
if (id.endsWith(".as")) {
|
|
49
49
|
if (!repo) {
|
|
50
50
|
const config = await atscriptConfig;
|
|
51
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
51
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
52
52
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
53
53
|
}
|
|
54
54
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile } from "fs/promises";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
4
|
-
import
|
|
4
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
5
5
|
import { createUnplugin } from "unplugin";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/rolldown.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/rolldown.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createRolldownPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/rollup.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/rollup.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createRollupPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/rspack.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/rspack.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createRspackPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/vite.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/vite.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createVitePlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/dist/webpack.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const unpluginFactory = (opts) => {
|
|
|
47
47
|
if (id.endsWith(".as")) {
|
|
48
48
|
if (!repo) {
|
|
49
49
|
const config = await atscriptConfig;
|
|
50
|
-
if (!config.plugins) config.plugins = [(0, __atscript_typescript.
|
|
50
|
+
if (!config.plugins) config.plugins = [(0, __atscript_typescript.tsPlugin)()];
|
|
51
51
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
52
52
|
}
|
|
53
53
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
package/dist/webpack.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createWebpackPlugin } from "unplugin";
|
|
|
2
2
|
import { readFile } from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { AtscriptRepo, isAnnotate, loadConfig, resolveConfigFile } from "@atscript/core";
|
|
5
|
-
import
|
|
5
|
+
import { tsPlugin } from "@atscript/typescript";
|
|
6
6
|
|
|
7
7
|
//#region packages/unplugin/src/index.ts
|
|
8
8
|
const unpluginFactory = (opts) => {
|
|
@@ -23,7 +23,7 @@ const unpluginFactory = (opts) => {
|
|
|
23
23
|
if (id.endsWith(".as")) {
|
|
24
24
|
if (!repo) {
|
|
25
25
|
const config = await atscriptConfig;
|
|
26
|
-
if (!config.plugins) config.plugins = [
|
|
26
|
+
if (!config.plugins) config.plugins = [tsPlugin()];
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-atscript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "Atscript: Configuration and build plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
7
7
|
"atscript",
|
|
8
|
+
"esbuild-plugin",
|
|
9
|
+
"rolldown-plugin",
|
|
10
|
+
"rollup-plugin",
|
|
11
|
+
"rspack-plugin",
|
|
8
12
|
"unplugin",
|
|
9
13
|
"vite-plugin",
|
|
10
|
-
"
|
|
11
|
-
"rolldown-plugin",
|
|
12
|
-
"webpack-plugin",
|
|
13
|
-
"esbuild-plugin",
|
|
14
|
-
"rspack-plugin"
|
|
14
|
+
"webpack-plugin"
|
|
15
15
|
],
|
|
16
16
|
"homepage": "https://github.com/moostjs/atscript/tree/main/packages/unplugin#readme",
|
|
17
17
|
"bugs": {
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"vitest": "3.2.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atscript/
|
|
84
|
-
"@atscript/
|
|
83
|
+
"@atscript/typescript": "^0.1.27",
|
|
84
|
+
"@atscript/core": "^0.1.27"
|
|
85
85
|
},
|
|
86
86
|
"build": [
|
|
87
87
|
{},
|