@hanzogui/babel-plugin 2.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var index_exports = {};
16
+ __export(index_exports, {
17
+ default: () => index_default
18
+ });
19
+ module.exports = __toCommonJS(index_exports);
20
+ var import_static_sync = require("@hanzogui/static-sync"), index_default = (0, import_static_sync.getBabelPlugin)();
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA+B,kCAGxB,oBAAQ,mCAAe;",
5
+ "names": []
6
+ }
@@ -0,0 +1,4 @@
1
+ import { getBabelPlugin } from "@hanzogui/static-sync";
2
+ var index_default = getBabelPlugin();
3
+ export { index_default as default };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getBabelPlugin","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,cAAA,QAAsB;AAG/B,IAAOC,aAAA,GAAQD,cAAA,CAAe","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import { getBabelPlugin } from "@hanzogui/static-sync";
2
+ var index_default = getBabelPlugin();
3
+ export { index_default as default };
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getBabelPlugin","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,cAAA,QAAsB;AAG/B,IAAOC,aAAA,GAAQD,cAAA,CAAe","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@hanzogui/babel-plugin",
3
+ "version": "2.0.0",
4
+ "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
+ "license": "MIT",
6
+ "source": "src/index.ts",
7
+ "files": [
8
+ "src",
9
+ "types",
10
+ "dist"
11
+ ],
12
+ "main": "dist/cjs/index.js",
13
+ "module": "dist/esm",
14
+ "types": "./types/index.d.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "scripts": {
19
+ "build": "hanzo-gui-build --skip-native",
20
+ "watch": "hanzo-gui-build --skip-native --watch",
21
+ "clean": "node ../../../node_modules/.bin/hanzo-gui-build clean",
22
+ "clean:build": "node ../../../node_modules/.bin/hanzo-gui-build clean:build"
23
+ },
24
+ "dependencies": {
25
+ "@babel/core": "^7.25.2",
26
+ "@babel/generator": "^7.25.5",
27
+ "@babel/helper-plugin-utils": "^7.24.8",
28
+ "@babel/template": "^7.25.0",
29
+ "@babel/traverse": "^7.25.4",
30
+ "@hanzogui/static-sync": "workspace:*"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/types": "^7.25.4",
34
+ "@hanzogui/build": "workspace:*"
35
+ }
36
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { getBabelPlugin } from '@hanzogui/static-sync'
2
+ import type babel from '@babel/core'
3
+
4
+ export default getBabelPlugin() as babel.PluginObj
@@ -0,0 +1,5 @@
1
+ import type babel from "@babel/core";
2
+ declare const _default: babel.PluginObj;
3
+ export default _default;
4
+
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ {
2
+ "mappings": "AACA,YAAY,WAAW;AAEvB,wBAAmC,MAAM",
3
+ "names": [],
4
+ "sources": [
5
+ "src/index.ts"
6
+ ],
7
+ "version": 3,
8
+ "sourcesContent": [
9
+ "import { getBabelPlugin } from '@hanzogui/static-sync'\nimport type babel from '@babel/core'\n\nexport default getBabelPlugin() as babel.PluginObj\n"
10
+ ]
11
+ }