Skip to content

Commit 24c7fe7

Browse files
author
saraelsa
committed
Follow solid-lib-starter for project structure
1 parent 71ea403 commit 24c7fe7

6 files changed

+889
-17
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 4,
4+
"printWidth": 120,
5+
"semi": true,
6+
"singleQuote": false,
7+
"useTabs": false,
8+
"arrowParens": "always",
9+
"bracketSpacing": true
10+
}

env.d.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
declare global {
2+
interface ImportMeta {
3+
env: {
4+
NODE_ENV: "production" | "development";
5+
PROD: boolean;
6+
DEV: boolean;
7+
};
8+
}
9+
namespace NodeJS {
10+
interface ProcessEnv {
11+
NODE_ENV: "production" | "development";
12+
PROD: boolean;
13+
DEV: boolean;
14+
}
15+
}
16+
}
17+
18+
export {};

package.json

+46-5
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,67 @@
66
"type": "git",
77
"url": "https://github.com/saraelsa/msal-community-solid.git"
88
},
9+
"private": "false",
910
"type": "module",
10-
"main": "dist/src/index.js",
11+
"main": "dist/index.cjs",
12+
"module": "dist/index.js",
13+
"types": "dist/index.d.ts",
14+
"exports": {
15+
"solid": {
16+
"development": "./dist/dev.jsx",
17+
"import": "./dist/index.jsx"
18+
},
19+
"development": {
20+
"import": {
21+
"types": "./dist/index.d.ts",
22+
"default": "./dist/dev.js"
23+
},
24+
"require": "./dist/dev.cjs"
25+
},
26+
"import": {
27+
"types": "./dist/index.d.ts",
28+
"default": "./dist/index.js"
29+
},
30+
"require": "./dist/index.cjs"
31+
},
1132
"scripts": {
12-
"build": "tsc",
13-
"publish": "tsc",
14-
"test": "vitest"
33+
"build": "tsup",
34+
"prepublishOnly": "pnpm build",
35+
"test": "vitest",
36+
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\"",
37+
"update-deps": "pnpm up -Li",
38+
"typecheck": "tsc --noEmit"
1539
},
1640
"license": "MIT",
1741
"devDependencies": {
1842
"@solidjs/testing-library": "^0.6.0",
1943
"@testing-library/jest-dom": "^5.16.5",
2044
"@types/testing-library__jest-dom": "^5.14.5",
45+
"esbuild": "^0.17.10",
46+
"esbuild-plugin-solid": "^0.5.0",
2147
"jsdom": "^21.1.0",
48+
"prettier": "^2.8.4",
49+
"tsup": "^6.6.3",
50+
"tsup-preset-solid": "^0.1.8",
2251
"typescript": "^4.9.5",
2352
"vite": "^4.1.4",
2453
"vite-plugin-solid": "^2.5.0",
2554
"vitest": "^0.28.4"
2655
},
56+
"peerDependencies": {
57+
"@azure/msal-browser": "^2.33.0",
58+
"solid-js": "^1.6.10"
59+
},
2760
"dependencies": {
2861
"@azure/msal-browser": "^2.33.0",
2962
"solid-js": "^1.6.10"
30-
}
63+
},
64+
"keywords": [
65+
"solid",
66+
"solidjs",
67+
"msal",
68+
"auth",
69+
"azure"
70+
],
71+
"packageManager": "pnpm@7.27.0"
3172
}

0 commit comments

Comments
 (0)