🔨 (viewer) Remove cross-env to improve cross-editor compatibility
This commit is contained in:
parent
c149abcaac
commit
4225fb0138
5 changed files with 13 additions and 14 deletions
|
|
@ -10,12 +10,12 @@
|
|||
"scripts": {
|
||||
"serve": "vue-cli-service serve --port 8080",
|
||||
"build": "vue-cli-service build",
|
||||
"fix-package": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} ts-node scripts/fix-package-imports.ts",
|
||||
"fix-package": "ts-node scripts/fix-package-imports.ts",
|
||||
"lint": "vue-cli-service lint",
|
||||
"package": "vue-cli-service build --target lib src/wrapper.ts",
|
||||
"prepublishOnly": "npm run package && npm run fix-package",
|
||||
"test": "vue-cli-service test:unit src/**/*.spec.ts",
|
||||
"quick-test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha -r ts-node/register src/logic/*.spec.ts src/data/*.spec.ts"
|
||||
"quick-test": "mocha -r ts-node/register src/logic/*.spec.ts src/data/*.spec.ts"
|
||||
},
|
||||
"unpkg": "dist/package/viewer.umd.min.js",
|
||||
"files": [
|
||||
|
|
@ -58,7 +58,6 @@
|
|||
"@vue/eslint-config-typescript": "^5.0.2",
|
||||
"@vue/test-utils": "^1.1.3",
|
||||
"chai": "^4.3.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
|
|
|
|||
10
viewer/pnpm-lock.yaml
generated
10
viewer/pnpm-lock.yaml
generated
|
|
@ -22,7 +22,6 @@ specifiers:
|
|||
bootstrap-vue: ^2.12.0
|
||||
chai: ^4.3.0
|
||||
chart.js: ^3.0.1
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^6.7.2
|
||||
eslint-plugin-import: ^2.20.2
|
||||
eslint-plugin-node: ^11.1.0
|
||||
|
|
@ -75,7 +74,6 @@ devDependencies:
|
|||
'@vue/eslint-config-typescript': 5.1.0_f8b8c2e71389849a7113a6c8d1602ca4
|
||||
'@vue/test-utils': 1.1.3_ae554d8947d7e926b014dda25865f517
|
||||
chai: 4.3.0
|
||||
cross-env: 7.0.3
|
||||
eslint: 6.8.0
|
||||
eslint-plugin-import: 2.22.1_eslint@6.8.0
|
||||
eslint-plugin-node: 11.1.0_eslint@6.8.0
|
||||
|
|
@ -2600,14 +2598,6 @@ packages:
|
|||
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
|
||||
dev: true
|
||||
|
||||
/cross-env/7.0.3:
|
||||
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
|
||||
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
cross-spawn: 7.0.3
|
||||
dev: true
|
||||
|
||||
/cross-spawn/5.1.0:
|
||||
resolution: {integrity: sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=}
|
||||
dependencies:
|
||||
|
|
|
|||
6
viewer/tsconfig.build.json
Normal file
6
viewer/tsconfig.build.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ESNext"
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
"compilerOptions": {
|
||||
/* Basic Options */
|
||||
"target": "es2019",
|
||||
"module": "ESNext",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist" /* Redirect output structure to the directory. */,
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ if (process.argv.includes("lib")) {
|
|||
config.externals({
|
||||
"bootstrap-vue": "BootstrapVue",
|
||||
});
|
||||
config.module
|
||||
.rule("ts")
|
||||
.use("ts-loader")
|
||||
.tap((options) => ({ ...options, configFile: "tsconfig.build.json" }));
|
||||
},
|
||||
publicPath: `//cdn.jsdelivr.net/npm/@gaia-project/viewer@${package.version}/dist/package/`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue