Skip to content

Commit ac19f79

Browse files
committed
Edit: license, types, homepage
1 parent 3562e6c commit ac19f79

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "dist/spacha.node.js",
6-
"types": "dist/src/index.d.ts",
6+
"types": "dist/src/index.node.d.ts",
77
"scripts": {
88
"prebuild": "rimraf dist",
99
"build": "npx webpack --config webpack.config.js",
@@ -21,12 +21,12 @@
2121
"url": "git+https://github.com/BonyChops/spacha.git"
2222
},
2323
"keywords": [],
24-
"author": "",
25-
"license": "ISC",
24+
"author": "Bony_Chops",
25+
"license": "MIT",
2626
"bugs": {
2727
"url": "https://github.com/BonyChops/spacha/issues"
2828
},
29-
"homepage": "https://github.com/BonyChops/spacha#readme",
29+
"homepage": "https://spacha.b7s.dev",
3030
"devDependencies": {
3131
"@jest/types": "^29.0.3",
3232
"@types/jest": "^29.0.3",

webpack.config.js

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
const path = require('path');
22

33
const baseConfig = {
4-
mode: 'production',
5-
resolve: {
6-
extensions: ['.ts', '.js'],
7-
},
8-
module: {
9-
rules: [{ test: /\.ts$/, loader: 'ts-loader' }],
10-
},
4+
mode: 'production',
5+
resolve: {
6+
extensions: ['.ts', '.js'],
7+
},
8+
module: {
9+
rules: [{ test: /\.ts$/, loader: 'ts-loader' }],
10+
},
1111
};
1212

1313
const webConfig = {
14-
target: 'web',
15-
entry: './src/index.ts',
16-
output: {
17-
filename: 'spacha.js',
18-
path: path.resolve(__dirname, 'dist'),
19-
libraryTarget: 'umd',
20-
globalObject: "typeof self !== 'undefined' ? self : this",
21-
},
14+
target: 'web',
15+
entry: './src/index.ts',
16+
output: {
17+
filename: 'spacha.js',
18+
path: path.resolve(__dirname, 'dist'),
19+
libraryTarget: 'umd',
20+
globalObject: "typeof self !== 'undefined' ? self : this",
21+
},
2222
};
2323

2424
const nodeConfig = {
25-
target: 'node',
26-
entry: './src/index.node.ts',
27-
output: {
28-
filename: 'spacha.node.js',
29-
libraryTarget: 'umd',
30-
globalObject: "typeof self !== 'undefined' ? self : this",
31-
path: path.resolve(__dirname, 'dist'),
32-
},
25+
target: 'node',
26+
entry: './src/index.node.ts',
27+
output: {
28+
filename: 'spacha.node.js',
29+
libraryTarget: 'umd',
30+
globalObject: "typeof self !== 'undefined' ? self : this",
31+
path: path.resolve(__dirname, 'dist'),
32+
},
3333
};
3434

3535
module.exports = [
36-
{ ...baseConfig, ...webConfig },
37-
{ ...baseConfig, ...nodeConfig },
36+
{ ...baseConfig, ...webConfig },
37+
{ ...baseConfig, ...nodeConfig },
3838
];

0 commit comments

Comments
 (0)