|
3 | 3 | "license": "BSD-2-Clause", |
4 | 4 | "description": "OpenLayers Editor", |
5 | 5 | "version": "2.2.0", |
6 | | - "main": "build/index.js", |
7 | 6 | "dependencies": {}, |
8 | 7 | "peerDependencies": { |
9 | 8 | "jsts": "^2", |
|
37 | 36 | "typescript": "5.0.4" |
38 | 37 | }, |
39 | 38 | "scripts": { |
40 | | - "build": "shx rm -rf build && tsc --project config/tsconfig-build.json && esbuild build/index.js --bundle --global-name=ole --loader:.svg=dataurl --minify --outfile=build/bundle.js", |
| 39 | + "build": "shx rm -rf build && tsc --project config/tsconfig-build.json && esbuild build/index.js --bundle --global-name=ole --loader:.svg=dataurl --minify --outfile=build/bundle.js && node tasks/prepare-package.mjs", |
41 | 40 | "cy:open": "cypress open", |
42 | 41 | "cy:run": "cypress run --headless", |
43 | 42 | "cy:test": "start-server-and-test start http://127.0.0.1:8000 cy:run", |
44 | 43 | "doc": "jsdoc -p -r -c jsdoc_conf.json src -d doc README.md && shx cp build/bundle.js index.js", |
45 | 44 | "format": "prettier --write 'cypress/integration/*.js' 'src/**/*.js' && eslint 'src/**/*.js' --fix && stylelint 'style/**/*.css' 'src/**/*.css' 'src/**/*.scss' --fix", |
46 | 45 | "lint": "eslint 'cypress/e2e/**/*.js' 'src/**/*.js' && stylelint 'style/**/*.css' 'src/**/*.css' 'src/**/*.scss'", |
47 | 46 | "prepare": "is-ci || husky install", |
48 | | - "publish:beta": "yarn release -- --prerelease beta --skip.changelog && yarn build && git push origin HEAD && git push --tags && yarn publish --tag beta", |
| 47 | + "publish:beta": "yarn release -- --prerelease beta --skip.changelog && yarn build && git push origin HEAD && git push --tags && cd build && yarn publish --tag beta", |
49 | 48 | "publish:beta:dryrun": "yarn release -- --prerelease beta --dry-run --skip.changelog", |
50 | | - "publish:public": "yarn release && yarn build && git push origin HEAD && git push --tags && yarn publish", |
| 49 | + "publish:public": "yarn release && yarn build && git push origin HEAD && git push --tags && cd build && yarn publish", |
51 | 50 | "publish:public:dryrun": "yarn release --dry-run", |
52 | 51 | "release": "standard-version", |
53 | 52 | "start": "esbuild src/index.js --bundle --global-name=ole --loader:.svg=dataurl --minify --outfile=index.js --serve=localhost:8000 --servedir=. --sourcemap --watch=forever" |
|
0 commit comments