aport-tools 1.0.3 → 2.0.1
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/.babelrc +6 -7
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
- package/rollup.config.mjs +4 -4
package/.babelrc
CHANGED
package/dist/index.esm.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! aport-tools
|
1
|
+
/*! aport-tools v2.0.1 | ISC */
|
2
2
|
import React, { createContext, useState, useEffect, useContext } from 'react';
|
3
3
|
import { Appearance, StyleSheet, View, Text, Switch } from 'react-native';
|
4
4
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "aport-tools",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.1",
|
4
4
|
"description": "Aport mobile Tools with modern and minimalistic design",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.esm.js",
|
7
7
|
"react-native": "dist/index.js",
|
8
8
|
"source": "src/index.ts",
|
9
9
|
"types": "dist/index.d.ts",
|
10
|
+
"type": "module",
|
10
11
|
"exports": {
|
11
12
|
"./Theme": "./dist/Theme/index.js",
|
12
13
|
"./Theme/*": "./dist/Theme/*.js",
|
package/rollup.config.mjs
CHANGED
@@ -9,17 +9,17 @@ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
9
9
|
import pkg from './package.json' assert { type: 'json' };
|
10
10
|
|
11
11
|
export default {
|
12
|
-
input: 'src/index.ts',
|
12
|
+
input: 'src/index.ts',
|
13
13
|
output: [
|
14
14
|
{
|
15
|
-
file: pkg.main,
|
15
|
+
file: pkg.main,
|
16
16
|
format: 'cjs',
|
17
17
|
sourcemap: true,
|
18
18
|
exports: 'named',
|
19
19
|
banner: `/*! ${pkg.name} v${pkg.version} | ${pkg.license} */`,
|
20
20
|
},
|
21
21
|
{
|
22
|
-
file: pkg.module,
|
22
|
+
file: pkg.module,
|
23
23
|
format: 'esm',
|
24
24
|
sourcemap: true,
|
25
25
|
banner: `/*! ${pkg.name} v${pkg.version} | ${pkg.license} */`,
|
@@ -37,7 +37,7 @@ export default {
|
|
37
37
|
include: ['src/**/*'],
|
38
38
|
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
|
39
39
|
}),
|
40
|
-
json(),
|
40
|
+
json(), // Handles JSON imports like package.json
|
41
41
|
typescript({
|
42
42
|
tsconfig: './tsconfig.json',
|
43
43
|
declaration: true,
|