mirror of
https://github.com/material-components/material-web.git
synced 2024-11-13 00:29:03 +03:00
c0d107ed72
- Set the version to what we published - Add publishConfig section, which is required for publishing to npm @namespaces - Pin the typescript version to ~4.7.3, because 4.8 introduced a small new typing error. It's a good idea to use ~ semver ranges for TypeScript generally, because TypeScript doesn't follow semver. PiperOrigin-RevId: 470359331
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"name": "@material/web",
|
|
"version": "0.1.0-alpha.0",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"description": "Material web components",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/material-components/material-web.git"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/material-components/material-web/issues"
|
|
},
|
|
"homepage": "https://github.com/material-components/material-web#readme",
|
|
"scripts": {
|
|
"clean": "npm run clean:sass && npm run clean:ts",
|
|
"clean:sass": "find . -name '*.css*' -type f -delete",
|
|
"clean:ts": "tsc --build --clean",
|
|
"build": "npm run build:sass && npm run build:ts",
|
|
"prebuild:sass": "[ -d node_modules/@material/web ] || (mkdir -p node_modules/@material && ln -s ../../ node_modules/@material/web)",
|
|
"build:sass": "sass --style=compressed --load-path=node_modules --load-path=node_modules/sass-true/sass $(ls -d */ | grep -v node_modules)",
|
|
"prebuild:ts": "find . -name '*.css' -type f | xargs node css-to-ts.js",
|
|
"build:ts": "tsc"
|
|
},
|
|
"files": [
|
|
"**/*.js",
|
|
"**/*.js.map",
|
|
"**/*.d.ts",
|
|
"**/*.scss",
|
|
"!css-to-ts.js",
|
|
"!**/test/**",
|
|
"!**/testing/**",
|
|
"!**/*_test.*"
|
|
],
|
|
"dependencies": {
|
|
"lit": "^2.3.0",
|
|
"tslib": "^2.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jasmine": "^4.0.3",
|
|
"jasmine": "^4.2.0",
|
|
"sass": "^1.52.3",
|
|
"sass-true": "^6.1.0",
|
|
"typescript": "~4.7.3"
|
|
}
|
|
}
|