t2cd 0.1.2 → 0.1.3
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.js → cjs/index.js} +2 -1
- package/dist/cjs/package.json +3 -0
- package/dist/mjs/index.js +4 -0
- package/dist/mjs/package.json +3 -0
- package/package.json +10 -5
- package/src/index.js +2 -1
- package/src/sampleFunction.js +3 -0
- package/dist/index.esm.js +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const { sampleFunction } = require('../../src/sampleFunction');
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
@@ -21,6 +21,7 @@ const components = {
|
|
|
21
21
|
Two
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
exports.sampleFunction = sampleFunction;
|
|
24
25
|
exports.One = One;
|
|
25
26
|
exports.Two = Two;
|
|
26
27
|
exports["default"] = components;
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "t2cd",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "testing",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.
|
|
7
|
-
"
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "testing alt dist output",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/mjs/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/mjs/index.js",
|
|
10
|
+
"require": "./dist/cjs/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
8
13
|
"author": "CD Cabrera <cabrera.code@gmail.com>",
|
|
9
14
|
"homepage": "",
|
|
10
15
|
"license": "MIT",
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { One } from './one';
|
|
2
2
|
import { Two } from './two';
|
|
3
|
+
import { sampleFunction } from './sampleFunction';
|
|
3
4
|
|
|
4
5
|
const components = {
|
|
5
6
|
One,
|
|
6
7
|
Two
|
|
7
8
|
};
|
|
8
9
|
|
|
9
|
-
export { components as default, One, Two };
|
|
10
|
+
export { components as default, One, Two, sampleFunction };
|
package/dist/index.esm.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
const One = () => {
|
|
4
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", null, "One lorem ipsum dolor sit"));
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const Two = () => {
|
|
8
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", null, "Two lorem ipsum dolor sit"));
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const components = {
|
|
12
|
-
One,
|
|
13
|
-
Two
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { One, Two, components as default };
|