|
2 | 2 | "name": "priority-plus", |
3 | 3 | "version": "0.0.0-semantically-released", |
4 | 4 | "description": "A modern implementation of the priority plus navigation pattern.", |
5 | | - "main": "dist/priority-plus.cjs.js", |
| 5 | + "type": "module", |
6 | 6 | "module": "dist/priority-plus.esm.js", |
7 | | - "browser": "dist/priority-plus.umd.js", |
| 7 | + "browser": "dist/priority-plus.js", |
| 8 | + "exports": { |
| 9 | + "import": "./dist/priority-plus.esm.js", |
| 10 | + "default": "./dist/priority-plus.js" |
| 11 | + }, |
8 | 12 | "types": "dist/types/priorityPlus.d.ts", |
9 | 13 | "scripts": { |
10 | | - "build": "concurrently \"npm:build:lib\" \"npm:build:types\"", |
11 | | - "build:lib": "rollup -c", |
| 14 | + "dev": "esbuild src/browser.ts --bundle --sourcemap --format=iife --servedir=www --outdir=www/assets", |
| 15 | + "prebuild": "rimraf dist", |
| 16 | + "build": "concurrently \"npm:build:*\"", |
| 17 | + "build:esm": "esbuild src/priorityPlus.ts --bundle --minify --format=esm --outfile=dist/priority-plus.esm.js", |
| 18 | + "build:iife": "esbuild src/browser.ts --bundle --minify --format=iife --outfile=dist/priority-plus.js", |
12 | 19 | "build:types": "tsc --emitDeclarationOnly --declarationDir dist/types", |
13 | | - "dev": "rollup -c -w", |
14 | | - "test": "concurrently \"npm:serve\" \"cypress run\"", |
15 | | - "test:ci": "npm run serve & wait-on http://localhost:8080 && cypress run", |
| 20 | + "test": "npm run test:types && npm run test:lint && npm run test:e2e", |
| 21 | + "test:types": "tsc --noEmit", |
16 | 22 | "test:lint": "tslint -c tslint.json 'src/**/*.ts'", |
17 | | - "test:open": "concurrently \"npm:serve\" \"cypress open\"", |
18 | | - "serve": "http-server -c-1" |
| 23 | + "test:e2e": "npm run dev & wait-on http-get://localhost:8000 && cypress run" |
19 | 24 | }, |
20 | 25 | "repository": { |
21 | 26 | "type": "git", |
|
31 | 36 | "url": "https://github.com/jayfreestone/priority-plus/issues" |
32 | 37 | }, |
33 | 38 | "homepage": "https://github.com/jayfreestone/priority-plus#readme", |
34 | | - "dependencies": { |
35 | | - "@babel/core": "^7.10.4", |
36 | | - "@babel/preset-env": "^7.10.4", |
37 | | - "babel-loader": "^8.1.0" |
38 | | - }, |
| 39 | + "dependencies": {}, |
39 | 40 | "devDependencies": { |
40 | | - "@cypress/webpack-preprocessor": "^5.4.1", |
41 | | - "@types/chai": "^4.2.11", |
42 | | - "@types/mocha": "^7.0.2", |
43 | | - "concurrently": "^5.2.0", |
44 | | - "cypress": "^4.9.0", |
45 | | - "http-server": "^0.12.3", |
46 | | - "rollup": "^2.18.2", |
47 | | - "rollup-plugin-terser": "^6.1.0", |
48 | | - "rollup-plugin-typescript": "^1.0.1", |
49 | | - "ts-loader": "^7.0.5", |
50 | | - "tslib": "^2.0.0", |
| 41 | + "@babel/core": "^7.13.14", |
| 42 | + "@babel/preset-env": "^7.13.12", |
| 43 | + "@cypress/webpack-preprocessor": "^5.6.0", |
| 44 | + "@types/chai": "^4.2.15", |
| 45 | + "@types/mocha": "^8.2.2", |
| 46 | + "babel-loader": "^8.2.2", |
| 47 | + "concurrently": "^6.0.0", |
| 48 | + "cypress": "^6.8.0", |
| 49 | + "esbuild": "^0.11.2", |
| 50 | + "rimraf": "^3.0.2", |
| 51 | + "ts-loader": "^8.1.0", |
| 52 | + "tslib": "^2.1.0", |
51 | 53 | "tslint": "^6.1.2", |
52 | | - "typescript": "^3.9.6", |
53 | | - "wait-on": "^5.0.1", |
54 | | - "webpack": "^4.43.0" |
| 54 | + "typescript": "^4.2.3", |
| 55 | + "wait-on": "^5.3.0", |
| 56 | + "webpack": "^5.28.0" |
55 | 57 | }, |
56 | 58 | "keywords": [ |
57 | 59 | "navigation", |
|
66 | 68 | } |
67 | 69 | ], |
68 | 70 | "release": { |
| 71 | + "branches": ["master"], |
69 | 72 | "plugins": [ |
70 | 73 | "@semantic-release/commit-analyzer", |
71 | 74 | "@semantic-release/release-notes-generator", |
|
74 | 77 | "@semantic-release/github", |
75 | 78 | { |
76 | 79 | "assets": [ |
77 | | - "dist/*.js", |
78 | | - "css/*.css" |
| 80 | + "dist/**/*" |
79 | 81 | ] |
80 | 82 | } |
81 | 83 | ] |
|
0 commit comments