t2cd 0.1.2 → 0.1.4

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.
@@ -1,4 +1,4 @@
1
- 'use strict';
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;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { sampleFunction } from '../../src/sampleFunction.js';
2
3
 
3
4
  const One = () => {
4
5
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", null, "One lorem ipsum dolor sit"));
@@ -13,4 +14,5 @@ const components = {
13
14
  Two
14
15
  };
15
16
 
16
- export { One, Two, components as default };
17
+
18
+ export { One, Two, sampleFunction, components as default };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "t2cd",
3
- "version": "0.1.2",
4
- "description": "testing",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "source": "src/index.js",
3
+ "version": "0.1.4",
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 };
@@ -0,0 +1,3 @@
1
+ const sampleFunction = () => console.log('Hello world!');
2
+
3
+ exports.sampleFunction = sampleFunction;