tuts-test-library 1.0.1 → 1.0.2
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 +50 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/package.json +5 -1
- package/eslint.config.js +0 -23
- package/src/components/Greetings.tsx +0 -11
- package/src/components/Hello.tsx +0 -9
- package/src/index.ts +0 -3
- package/tsconfig.app.json +0 -28
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/tsconfig.tsup.json +0 -30
- package/tsup.config.ts +0 -11
- package/vite.config.ts +0 -15
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Greetings: () => Greetings_default,
|
|
24
|
+
Hello: () => Hello_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// src/components/Hello.tsx
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
function Hello() {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Test Library is Working Successfully!" });
|
|
32
|
+
}
|
|
33
|
+
var Hello_default = Hello;
|
|
34
|
+
|
|
35
|
+
// src/components/Greetings.tsx
|
|
36
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
37
|
+
var Greetings = ({ name }) => {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
|
|
39
|
+
"Hello ",
|
|
40
|
+
name,
|
|
41
|
+
"!"
|
|
42
|
+
] });
|
|
43
|
+
};
|
|
44
|
+
var Greetings_default = Greetings;
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
Greetings,
|
|
48
|
+
Hello
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/index.ts\r\nexport { default as Hello } from './components/Hello'\r\nexport { default as Greetings } from './components/Greetings'","// src/components/Hello.tsx\r\n\r\nfunction Hello(){\r\n return (\r\n <div>Test Library is Working Successfully!</div>\r\n )\r\n}\r\n\r\nexport default Hello","interface HelloTwoProps {\r\n name: string\r\n}\r\n\r\nconst Greetings = ({name}: HelloTwoProps) => {\r\n return (\r\n <div>Hello {name}!</div>\r\n )\r\n}\r\n\r\nexport default Greetings"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIQ;AAFR,SAAS,QAAO;AACZ,SACI,4CAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX,IAAAA,sBAAA;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,8CAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":["import_jsx_runtime"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function Hello(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
|
|
5
|
+
interface HelloTwoProps {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Greetings: ({ name }: HelloTwoProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Greetings, Hello };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function Hello(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
|
|
5
|
+
interface HelloTwoProps {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Greetings: ({ name }: HelloTwoProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Greetings, Hello };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/components/Hello.tsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Hello() {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { children: "Test Library is Working Successfully!" });
|
|
5
|
+
}
|
|
6
|
+
var Hello_default = Hello;
|
|
7
|
+
|
|
8
|
+
// src/components/Greetings.tsx
|
|
9
|
+
import { jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Greetings = ({ name }) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
12
|
+
"Hello ",
|
|
13
|
+
name,
|
|
14
|
+
"!"
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
var Greetings_default = Greetings;
|
|
18
|
+
export {
|
|
19
|
+
Greetings_default as Greetings,
|
|
20
|
+
Hello_default as Hello
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/components/Hello.tsx\r\n\r\nfunction Hello(){\r\n return (\r\n <div>Test Library is Working Successfully!</div>\r\n )\r\n}\r\n\r\nexport default Hello","interface HelloTwoProps {\r\n name: string\r\n}\r\n\r\nconst Greetings = ({name}: HelloTwoProps) => {\r\n return (\r\n <div>Hello {name}!</div>\r\n )\r\n}\r\n\r\nexport default Greetings"],"mappings":";AAIQ;AAFR,SAAS,QAAO;AACZ,SACI,oBAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,qBAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.2",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
9
13
|
"scripts": {
|
|
10
14
|
"dev": "tsup --watch --sourcemap",
|
|
11
15
|
"build": "tsup",
|
package/eslint.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
globalIgnores(['dist']),
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
extends: [
|
|
13
|
-
js.configs.recommended,
|
|
14
|
-
tseslint.configs.recommended,
|
|
15
|
-
reactHooks.configs.flat.recommended,
|
|
16
|
-
reactRefresh.configs.vite,
|
|
17
|
-
],
|
|
18
|
-
languageOptions: {
|
|
19
|
-
ecmaVersion: 2020,
|
|
20
|
-
globals: globals.browser,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
])
|
package/src/components/Hello.tsx
DELETED
package/src/index.ts
DELETED
package/tsconfig.app.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"types": ["vite/client"],
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
|
|
11
|
-
/* Bundler mode */
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"moduleDetection": "force",
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react-jsx",
|
|
18
|
-
|
|
19
|
-
/* Linting */
|
|
20
|
-
"strict": true,
|
|
21
|
-
"noUnusedLocals": true,
|
|
22
|
-
"noUnusedParameters": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"noFallthroughCasesInSwitch": true,
|
|
25
|
-
"noUncheckedSideEffectImports": true
|
|
26
|
-
},
|
|
27
|
-
"include": ["src"]
|
|
28
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/tsconfig.tsup.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
"target": "ES2022",
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"emitDeclarationOnly": true,
|
|
10
|
-
"declarationDir": "dist",
|
|
11
|
-
"noEmit": false,
|
|
12
|
-
"types": ["vite/client"],
|
|
13
|
-
|
|
14
|
-
/* Bundler mode */
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
"moduleResolution": "bundler",
|
|
17
|
-
"verbatimModuleSyntax": true,
|
|
18
|
-
"moduleDetection": "force",
|
|
19
|
-
|
|
20
|
-
/* Linting */
|
|
21
|
-
"strict": true,
|
|
22
|
-
"noUnusedLocals": true,
|
|
23
|
-
"noUnusedParameters": true,
|
|
24
|
-
"erasableSyntaxOnly": true,
|
|
25
|
-
"noFallthroughCasesInSwitch": true,
|
|
26
|
-
"noUncheckedSideEffectImports": true
|
|
27
|
-
},
|
|
28
|
-
"include": ["src"],
|
|
29
|
-
"exclude": ["node_modules", "dist"]
|
|
30
|
-
}
|
package/tsup.config.ts
DELETED
package/vite.config.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import path from 'path';
|
|
4
|
-
|
|
5
|
-
// https://vite.dev/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [react()],
|
|
8
|
-
resolve: {
|
|
9
|
-
alias: {
|
|
10
|
-
'@': path.resolve(__dirname, 'src')
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|