t2cd 0.1.1 → 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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.2](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.2) (2022-04-20)
6
+
5
7
  ### [0.1.1](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.1) (2022-04-20)
6
8
 
7
9
  ### [0.1.0](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.0) (2022-04-20)
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { components, One, Two, sampleFunction } from '../../src/';
3
+
4
+ export { One, Two, sampleFunction, components as default };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "t2cd",
3
- "version": "0.1.1",
4
- "description": "testing",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "source": "src/index.js",
8
- "files": [
9
- "css",
10
- "es",
11
- "lib",
12
- "umd"
13
- ],
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
+ },
14
13
  "author": "CD Cabrera <cabrera.code@gmail.com>",
15
14
  "homepage": "",
16
15
  "license": "MIT",
package/src/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { One } from './one';
2
+ import { Two } from './two';
3
+ import { sampleFunction } from './sampleFunction';
4
+
5
+ const components = {
6
+ One,
7
+ Two
8
+ };
9
+
10
+ export { components as default, One, Two, sampleFunction };
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: One component
3
+ section: extensions
4
+ ---
5
+
6
+ A **One** is used to lorem ipsum.
7
+
8
+
9
+ ## Examples
10
+ ### Basic component
11
+ ```js
12
+ import React from 'react';
13
+ const Example = () => {
14
+ return <React.Fragment>hello world</React.Fragment>
15
+ }
16
+ ```
17
+
18
+ ## Documentation
19
+ Lorem ipsum
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ const One = () => { return (<div><h1>One lorem ipsum dolor sit</h1></div>); };
4
+
5
+ export { One as default, One };
@@ -0,0 +1,3 @@
1
+ const sampleFunction = () => console.log('Hello world!');
2
+
3
+ exports.sampleFunction = sampleFunction;
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: Two component
3
+ section: extensions
4
+ ---
5
+
6
+ ## Introduction
7
+ A **Two** is used to dolor sit.
8
+
9
+ ## Examples
10
+ ### Basic component
11
+ ```js
12
+ import React from 'react';
13
+ const Example = () => {
14
+ return <React.Fragment>hello world</React.Fragment>
15
+ }
16
+ ```
17
+
18
+ ## Documentation
19
+ Lorem ipsum
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ const Two = () => { return (<div><h2>Two lorem ipsum dolor sit</h2></div>); };
4
+
5
+ export { Two as default, Two };