jy-headless 0.0.6 → 0.0.8

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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ var Button = function (_a) {
3
+ var label = _a.label;
4
+ return React.createElement("button", null, label);
5
+ };
6
+ export default Button;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ButtonProps {
3
+ label: string;
4
+ }
5
+ declare const Button: React.FC<ButtonProps>;
6
+ export default Button;
@@ -1,3 +1,2 @@
1
- import Button from './components/button/Button';
2
-
3
- export { Button };
1
+ import Button from './components/button/Button';
2
+ export { Button };
package/package.json CHANGED
@@ -1,14 +1,28 @@
1
1
  {
2
2
  "name": "jy-headless",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "dist/index.cjs",
6
+ "typings": "dist/index.d.ts",
7
+ "module": "dist/index.esm.js",
6
8
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
9
+ "build": " rollup -c"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "exports": {
15
+ "types": {
16
+ "import": "./dist/index.d.ts",
17
+ "require": "./dist/index.d.cts"
18
+ },
19
+ "import": "./dist/index.esm.js",
20
+ "require": "./dist/index.cjs"
8
21
  },
9
22
  "keywords": [],
10
23
  "author": "",
11
24
  "license": "ISC",
25
+ "type": "module",
12
26
  "devDependencies": {
13
27
  "@rollup/plugin-commonjs": "^28.0.2",
14
28
  "@rollup/plugin-node-resolve": "^16.0.0",
package/.idea/aws.xml DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeRegion" value="us-east-1" />
5
- <option name="recentlyUsedRegions">
6
- <list>
7
- <option value="us-east-1" />
8
- </list>
9
- </option>
10
- </component>
11
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxProjectSettings">
4
- <option name="commitMessageIssueKeyValidationOverride">
5
- <BoolValueOverride>
6
- <option name="enabled" value="true" />
7
- </BoolValueOverride>
8
- </option>
9
- <option name="commitMessageValidationEnabledOverride">
10
- <BoolValueOverride>
11
- <option name="enabled" value="true" />
12
- </BoolValueOverride>
13
- </option>
14
- </component>
15
- </project>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- </profile>
6
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JpaBuddyIdeaProjectConfig">
4
- <option name="renamerInitialized" value="true" />
5
- </component>
6
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
package/.idea/misc.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="openjdk-21" project-jdk-type="JavaSDK">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- <component name="ProjectType">
7
- <option name="id" value="jpab" />
8
- </component>
9
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/jy-headless.iml" filepath="$PROJECT_DIR$/.idea/jy-headless.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
package/rollup.config.mjs DELETED
@@ -1,27 +0,0 @@
1
- import typescript from 'rollup-plugin-typescript2';
2
- import resolve from '@rollup/plugin-node-resolve';
3
- import commonjs from '@rollup/plugin-commonjs';
4
-
5
- export default {
6
- input: 'src/index.tsx',
7
- output: [
8
- {
9
- file: 'dist/index.js',
10
- format: 'cjs',
11
- sourcemap: true,
12
- },
13
- {
14
- file: 'dist/index.esm.js',
15
- format: 'esm',
16
- sourcemap: true,
17
- },
18
- ],
19
- plugins: [
20
- resolve(),
21
- commonjs(),
22
- typescript({
23
- tsconfig: './tsconfig.json',
24
- }),
25
- ],
26
- external: ['react', 'react-dom'],
27
- };
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
-
3
- interface ButtonProps {
4
- label: string;
5
- }
6
-
7
- const Button: React.FC<ButtonProps> = ({ label }) => {
8
- return <button>{label}</button>;
9
- };
10
-
11
- export default Button;
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES5",
4
- "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "jsx": "react",
7
- "declaration": true,
8
- "declarationDir": "dist/types",
9
- "outDir": "dist",
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true
13
- },
14
- "include": ["src/**/*"]
15
- }