Skip to content

Commit 48302a7

Browse files
committed
fix: change to distributing just dist folder
1 parent a3a1e21 commit 48302a7

File tree

6 files changed

+47
-42
lines changed

6 files changed

+47
-42
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
working-directory: ./dist

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![npm](https://img.shields.io/npm/v/sveltekit-adapter-aws-pulumi)](https://www.npmjs.com/package/sveltekit-adapter-aws-pulumi)
2+
![stability-wip](https://img.shields.io/badge/stability-wip-lightgrey.svg)
23

34
[![Unit tests](https://github.com/Data-Only-Greater/sveltekit-adapter-aws-pulumi/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/Data-Only-Greater/sveltekit-adapter-aws-pulumi/actions/workflows/unit_tests.yml)
45
[![Release](https://github.com/Data-Only-Greater/sveltekit-adapter-aws-pulumi/actions/workflows/release.yml/badge.svg)](https://github.com/Data-Only-Greater/sveltekit-adapter-aws-pulumi/actions/workflows/release.yml)

package.json

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,25 @@
1818
],
1919
"author": "Mathew Topper <damm_horse@yahoo.co.uk>",
2020
"version": "0.0.0-semantic-release",
21-
"main": "dist/index.js",
22-
"types": "dist/index.d.ts",
23-
"files": [
24-
"dist",
25-
"LICENSE",
26-
"README.md",
27-
"package.json"
28-
],
21+
"type": "module",
22+
"exports": {
23+
".": {
24+
"types": "./index.d.ts",
25+
"import": "./index.js"
26+
},
27+
"./package.json": "./package.json"
28+
},
29+
"types": "./index.d.ts",
2930
"bin": {
30-
"destroy": "dist/bin/destroy.js"
31+
"destroy": "./bin/destroy.js"
3132
},
3233
"scripts": {
3334
"build": "yarn clean && tsc --project tsconfig.build.json && yarn copy-files",
3435
"watch": "tsc -w --excludeFiles test",
3536
"format": "prettier --write .",
3637
"test": "vitest",
3738
"clean": "rimraf dist",
38-
"copy-files": "copyfiles pulumi/** dist",
39+
"copy-files": "copyfiles pulumi/** package.json README.md LICENSE dist",
3940
"coverage": "vitest run --coverage"
4041
},
4142
"devDependencies": {
@@ -59,6 +60,37 @@
5960
"dependencies": {
6061
"dotenv": "^16.0.3",
6162
"minimist": "^1.2.8",
62-
"sveltekit-adapter-aws-base": "^1.0.2"
63+
"sveltekit-adapter-aws-base": "^1.2.0"
64+
},
65+
"release": {
66+
"branches": [
67+
"main"
68+
],
69+
"plugins": [
70+
[
71+
"@semantic-release/commit-analyzer",
72+
{
73+
"preset": "conventionalcommits"
74+
}
75+
],
76+
"@semantic-release/release-notes-generator",
77+
[
78+
"@semantic-release/changelog",
79+
{
80+
"changelogFile": "../CHANGELOG.md"
81+
}
82+
],
83+
"@semantic-release/npm",
84+
"@semantic-release/github",
85+
[
86+
"@semantic-release/git",
87+
{
88+
"assets": [
89+
"../CHANGELOG.md"
90+
],
91+
"message": "chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
92+
}
93+
]
94+
]
6395
}
6496
}

release.config.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2020",
3+
"target": "es2022",
44
"module": "es2022",
55
"moduleResolution": "node",
66
"declaration": true,

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2020",
3+
"target": "es2022",
44
"module": "es2022",
55
"moduleResolution": "node",
66
"declaration": true,
@@ -22,7 +22,6 @@
2222
"allowJs": false,
2323
"typeRoots": ["./node_modules/@types"],
2424
"types": ["vitest/globals"],
25-
"outDir": "dist"
2625
},
2726
"exclude": ["vitest.config.ts", "dist"]
2827
}

0 commit comments

Comments
 (0)