Skip to content

Commit 61bd92c

Browse files
committed
fix: webpack output to index.js instead of main.js
1 parent 7efb21d commit 61bd92c

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

code/code-service/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atls/code-service",
3-
"version": "0.0.28",
3+
"version": "0.1.0",
44
"license": "BSD-3-Clause",
55
"main": "src/index.ts",
66
"files": [

code/code-service/src/webpack.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ export class WebpackConfig {
8888
environment === WebpackEnvironment.dev ? new HotModuleReplacementPlugin() : () => {},
8989
...plugins,
9090
],
91-
entry: join(this.cwd, 'src/index'),
91+
entry: {
92+
index: join(this.cwd, 'src/index'),
93+
},
9294
node: { __dirname: false, __filename: false },
9395
output: { path: join(this.cwd, 'dist'), filename: '[name].js' },
9496
resolve: { extensions: ['.tsx', '.ts', '.js'] },

config/typescript/src/tsconfig.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"compilerOptions": {
3-
"lib": [
4-
"dom",
5-
"dom.iterable",
6-
"esnext"
7-
],
3+
"lib": ["dom", "dom.iterable", "esnext"],
84
"emitDecoratorMetadata": true,
95
"declaration": false,
106
"experimentalDecorators": true,
@@ -40,4 +36,4 @@
4036
"**/*/dist/**/*.d.ts",
4137
"integration/**/*.test.ts"
4238
]
43-
}
39+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@angular-devkit/core": "17.0.8",
2525
"@angular-devkit/schematics": "17.0.8",
26-
"@atls/code-service": "workspace:0.0.28",
26+
"@atls/code-service": "workspace:*",
2727
"@atls/config-eslint": "workspace:0.0.12",
2828
"@atls/config-jest": "workspace:0.0.14",
2929
"@atls/schematics": "workspace:0.0.25",

schematics/schematics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"typings": "dist/index.d.ts"
2929
},
3030
"schematics": "./src/collection.json"
31-
}
31+
}

yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ __metadata:
607607
languageName: unknown
608608
linkType: soft
609609

610-
"@atls/code-service@workspace:*, @atls/code-service@workspace:0.0.28, @atls/code-service@workspace:code/code-service":
610+
"@atls/code-service@workspace:*, @atls/code-service@workspace:code/code-service":
611611
version: 0.0.0-use.local
612612
resolution: "@atls/code-service@workspace:code/code-service"
613613
dependencies:
@@ -12689,7 +12689,7 @@ __metadata:
1268912689
dependencies:
1269012690
"@angular-devkit/core": "npm:17.0.8"
1269112691
"@angular-devkit/schematics": "npm:17.0.8"
12692-
"@atls/code-service": "workspace:0.0.28"
12692+
"@atls/code-service": "workspace:*"
1269312693
"@atls/config-eslint": "workspace:0.0.12"
1269412694
"@atls/config-jest": "workspace:0.0.14"
1269512695
"@atls/schematics": "workspace:0.0.25"

0 commit comments

Comments
 (0)