Skip to content

Commit 4f209f7

Browse files
committed
rename
1 parent a855c1d commit 4f209f7

8 files changed

+13
-13
lines changed

dist/myLibrary.umd.cjs

-1
This file was deleted.

dist/myLibrary.js dist/redsys.js

File renamed without changes.

dist/redsys.umd.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.redsys={}))})(this,function(e){"use strict";const i=()=>"Are you inspired?";e.inspire=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "javascript-library-skeleton",
2+
"name": "redsys",
33
"version": "0.0.1",
44
"description": "",
55
"author": "",
66
"license": "ISC",
77
"private": true,
88
"type": "module",
9-
"main": "dist/index.umd.cjs",
10-
"module": "dist/index.js",
9+
"main": "dist/redsys.umd.cjs",
10+
"module": "dist/redsys.js",
1111
"exports": {
1212
".": {
13-
"import": "./dist/index.js",
14-
"require": "./dist/index.umd.cjs"
13+
"import": "./dist/redsys.js",
14+
"require": "./dist/redsys.umd.cjs"
1515
}
1616
},
1717
"scripts": {

src/myLibrary.js src/redsys.js

File renamed without changes.

tests/inspire.module.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expectTypeOf, expect } from 'vitest'
2-
import * as myLibrary from "../dist/myLibrary.umd.cjs"
2+
import * as redsys from "../dist/redsys.umd.cjs"
33

44
test('inspire is a function', () => {
5-
expectTypeOf(myLibrary.inspire).toBeFunction()
6-
expect(myLibrary.inspire()).toBeTypeOf('string')
5+
expectTypeOf(redsys.inspire).toBeFunction()
6+
expect(redsys.inspire()).toBeTypeOf('string')
77
})

tests/inspire.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expectTypeOf, expect } from 'vitest'
2-
import { inspire } from "../dist/myLibrary.js"
2+
import { inspire } from "../dist/redsys.js"
33

44
test('inspire is a function', () => {
55
expectTypeOf(inspire).toBeFunction()

vite.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { defineConfig } from 'vite'
44
export default defineConfig({
55
build: {
66
lib: {
7-
entry: resolve(__dirname, 'src/myLibrary.js'),
8-
name: 'myLibrary',
9-
fileName: 'myLibrary'
7+
entry: resolve(__dirname, 'src/redsys.js'),
8+
name: 'redsys',
9+
fileName: 'redsys'
1010
}
1111
},
1212

0 commit comments

Comments
 (0)