piral-svelte 0.15.0-alpha.4041 → 0.15.0-alpha.4231
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/convert.js +4 -9
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +23 -4
package/convert.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SvelteExtension = exports.fromSvelte = exports.createSvelteConverter = void 0;
|
|
4
|
-
var converter_1 = require("./esm/converter");
|
|
5
|
-
function createSvelteConverter() {
|
|
1
|
+
import { createConverter } from './esm/converter';
|
|
2
|
+
export function createSvelteConverter() {
|
|
6
3
|
var params = [];
|
|
7
4
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8
5
|
params[_i] = arguments[_i];
|
|
9
6
|
}
|
|
10
|
-
var convert =
|
|
7
|
+
var convert = createConverter.apply(void 0, params);
|
|
11
8
|
var Extension = convert.Extension;
|
|
12
9
|
var from = function (Component, captured) { return ({
|
|
13
10
|
type: 'html',
|
|
@@ -15,7 +12,5 @@ function createSvelteConverter() {
|
|
|
15
12
|
}); };
|
|
16
13
|
return { from: from, Extension: Extension };
|
|
17
14
|
}
|
|
18
|
-
exports.createSvelteConverter = createSvelteConverter;
|
|
19
15
|
var _a = createSvelteConverter(), fromSvelte = _a.from, SvelteExtension = _a.Extension;
|
|
20
|
-
|
|
21
|
-
exports.SvelteExtension = SvelteExtension;
|
|
16
|
+
export { fromSvelte, SvelteExtension };
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./create"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-svelte",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.4231",
|
|
4
4
|
"description": "Plugin for integrating Svelte components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -19,6 +19,25 @@
|
|
|
19
19
|
"module": "esm/index.js",
|
|
20
20
|
"main": "lib/index.js",
|
|
21
21
|
"typings": "lib/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./esm/index.js",
|
|
25
|
+
"require": "./lib/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./convert": {
|
|
28
|
+
"import": "./convert.js"
|
|
29
|
+
},
|
|
30
|
+
"./extend-webpack": {
|
|
31
|
+
"require": "./extend-webpack.js"
|
|
32
|
+
},
|
|
33
|
+
"./esm/*": {
|
|
34
|
+
"import": "./esm/*"
|
|
35
|
+
},
|
|
36
|
+
"./lib/*": {
|
|
37
|
+
"require": "./lib/*"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
22
41
|
"sideEffects": false,
|
|
23
42
|
"files": [
|
|
24
43
|
"esm",
|
|
@@ -38,14 +57,14 @@
|
|
|
38
57
|
"scripts": {
|
|
39
58
|
"cleanup": "rimraf esm lib convert.d.ts convert.js",
|
|
40
59
|
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
|
|
41
|
-
"build:convert": "tsc convert.ts --skipLibCheck --declaration",
|
|
60
|
+
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
|
|
42
61
|
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
|
|
43
62
|
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
|
44
63
|
"typedoc": "typedoc --json ../../../docs/types/piral-svelte.json src --exclude \"src/**/*.test.*\"",
|
|
45
64
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
46
65
|
},
|
|
47
66
|
"devDependencies": {
|
|
48
|
-
"piral-core": "0.15.0-alpha.
|
|
67
|
+
"piral-core": "0.15.0-alpha.4231"
|
|
49
68
|
},
|
|
50
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "4e7f158bd276d82c5bf2c19d47ccfb3604f38e38"
|
|
51
70
|
}
|