iscc-core-ts 0.0.1 → 0.0.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/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ (() => {
3
+ // src/welcome-message.ts
4
+ var getWelcomeMessage = () => "Welcome to ts-jest!!!";
5
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iscc-core-ts",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Iscc core TypeScript implementation of iscc-core reference",
5
5
  "type": "module",
6
6
  "main": "./lib/cjs/index.js",
@@ -20,6 +20,9 @@
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/branciard/iscc-core-ts.git"
22
22
  },
23
+ "files": [
24
+ "dist"
25
+ ],
23
26
  "keywords": [
24
27
  "ISCC",
25
28
  "ISCC-CORE"
package/.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- npm test
@@ -1,16 +0,0 @@
1
- import preset from 'ts-jest/presets/index.js'
2
-
3
- /** @type {import('ts-jest').JestConfigWithTsJest} */
4
- export default {
5
- ...preset.defaultsESM,
6
- transform: {
7
- '^.+\\.tsx?$': [
8
- 'ts-jest',
9
- {
10
- isolatedModules: true,
11
- tsconfig: 'tsconfig-esm.json',
12
- useESM: true,
13
- },
14
- ],
15
- },
16
- }
@@ -1,15 +0,0 @@
1
- import preset from 'ts-jest/presets/index.js'
2
-
3
- /** @type {import('ts-jest').JestConfigWithTsJest} */
4
- export default {
5
- ...preset.defaultsESM,
6
- transform: {
7
- '^.+\\.tsx?$': [
8
- 'ts-jest',
9
- {
10
- tsconfig: 'tsconfig-esm.json',
11
- useESM: true,
12
- },
13
- ],
14
- },
15
- }
@@ -1,14 +0,0 @@
1
- const preset = require('ts-jest/presets');
2
-
3
- /** @type {import('ts-jest').JestConfigWithTsJest} */
4
- module.exports = {
5
- ...preset.defaults,
6
- transform: {
7
- '^.+\\.tsx?$': [
8
- 'ts-jest',
9
- {
10
- isolatedModules: true,
11
- },
12
- ],
13
- },
14
- }
package/jest.config.cjs DELETED
@@ -1,6 +0,0 @@
1
- const preset = require('ts-jest/presets');
2
-
3
- /** @type {import('ts-jest').JestConfigWithTsJest} */
4
- module.exports = {
5
- ...preset.defaults,
6
- }
package/jest.config.js DELETED
@@ -1,5 +0,0 @@
1
- /** @type {import('ts-jest').JestConfigWithTsJest} */
2
- module.exports = {
3
- preset: 'ts-jest',
4
- testEnvironment: 'node',
5
- };
@@ -1 +0,0 @@
1
- export declare const getWelcomeMessage: () => string;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getWelcomeMessage = void 0;
4
- const getWelcomeMessage = () => 'Welcome to ts-jest!!!';
5
- exports.getWelcomeMessage = getWelcomeMessage;
6
- //# sourceMappingURL=welcome-message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"welcome-message.js","sourceRoot":"","sources":["../../src/welcome-message.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,GAAW,EAAE,CAAC,uBAAuB,CAAA;AAAzD,QAAA,iBAAiB,qBAAwC","sourcesContent":["export const getWelcomeMessage = (): string => 'Welcome to ts-jest!!!'"]}
@@ -1 +0,0 @@
1
- export declare const getWelcomeMessage: () => string;
@@ -1,2 +0,0 @@
1
- export const getWelcomeMessage = () => 'Welcome to ts-jest!!!';
2
- //# sourceMappingURL=welcome-message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"welcome-message.js","sourceRoot":"","sources":["../../src/welcome-message.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAW,EAAE,CAAC,uBAAuB,CAAA","sourcesContent":["export const getWelcomeMessage = (): string => 'Welcome to ts-jest!!!'"]}
package/nodemon.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "watch": ["src"],
3
- "exec": "ts-node ./src/index.ts"
4
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './welcome-message';
@@ -1,5 +0,0 @@
1
- import { getWelcomeMessage } from './welcome-message'
2
-
3
- test('should show welcome message', () => {
4
- expect(getWelcomeMessage()).toMatchInlineSnapshot(`"Welcome to ts-jest!!!"`)
5
- })
@@ -1 +0,0 @@
1
- export const getWelcomeMessage = (): string => 'Welcome to ts-jest!!!'
package/tsconfig-cjs.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "CommonJS",
5
- "outDir": "./lib/cjs"
6
- }
7
- }
package/tsconfig-esm.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "ESNext",
5
- "esModuleInterop": true
6
- }
7
- }
package/tsconfig.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "ES2020",
4
- "moduleResolution": "node",
5
- "target": "es2022",
6
- "allowJs": false,
7
- "baseUrl": "./",
8
- "declaration": true,
9
- "esModuleInterop": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "incremental": true,
12
- "outDir": "./lib/esm",
13
- "resolveJsonModule": true,
14
- "rootDir": "./src",
15
- "sourceMap": true,
16
- "inlineSources": true,
17
- "strict": true,
18
- },
19
- "include": [ "src/**/*"],
20
- "exclude": ["**/src/**/*.test.ts"]
21
- }