Skip to content

Commit 1f86709

Browse files
Merge pull request #1 from rkalis/main
Add prepublishOnly script to compile TS code on `npm publish`
2 parents a249c93 + b703998 commit 1f86709

File tree

4 files changed

+6843
-19
lines changed

4 files changed

+6843
-19
lines changed

.npmignore

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

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "docusaurus-plugin-simple-analytics",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Simple Analytics plugin for Docusaurus.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
7+
"files": [
8+
"lib",
9+
"!lib/.tsbuildinfo"
10+
],
711
"keywords": [
812
"docusaurus",
913
"analytics"
@@ -13,23 +17,26 @@
1317
},
1418
"scripts": {
1519
"build": "tsc --build",
16-
"watch": "tsc --build --watch"
20+
"watch": "tsc --build --watch",
21+
"prepublishOnly": "npm run build"
1722
},
1823
"repository": {
1924
"type": "git",
20-
"url": "https://github.com/branchup/docusaurus-plugin-simple-analytics.git"
25+
"url": "https://github.com/simpleanalytics/docusaurus-plugin.git"
2126
},
2227
"license": "MIT",
2328
"dependencies": {
24-
"@docusaurus/core": "2.1.0",
25-
"@docusaurus/types": "2.1.0",
26-
"@docusaurus/utils-validation": "2.1.0",
27-
"tslib": "^2.4.0",
28-
"typescript": "^4.8.4"
29+
"@docusaurus/core": "^2.4.1",
30+
"@docusaurus/types": "^2.4.1",
31+
"@docusaurus/utils-validation": "^2.4.1"
32+
},
33+
"devDependencies": {
34+
"tslib": "^2.5.2",
35+
"typescript": "^5.0.4"
2936
},
3037
"peerDependencies": {
31-
"react": "^16.8.4 || ^17.0.0",
32-
"react-dom": "^16.8.4 || ^17.0.0"
38+
"react": "^16.8.4 || ^17.0.0 || ^18.0.0",
39+
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0"
3340
},
3441
"engines": {
3542
"node": ">=16.14"

tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"extends": "./tsconfig.docusaurus.json",
3-
// "references": [
4-
// {
5-
// "path": "./tsconfig.client.json"
6-
// }
7-
// ],
83
"compilerOptions": {
94
"noEmit": false,
105
"incremental": true,
@@ -18,4 +13,4 @@
1813
"exclude": [
1914
"**/__tests__/**"
2015
]
21-
}
16+
}

0 commit comments

Comments
 (0)