pts 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pts",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "pts",
5
5
  "main": "./dist/index",
6
6
  "types": "./dist/index.d.ts",
@@ -32,6 +32,9 @@
32
32
  "typedoc": "^0.17.8",
33
33
  "typescript": "^4.8.3"
34
34
  },
35
+ "optionalDependencies": {
36
+ "@nrwl/cli": "13.7.1"
37
+ },
35
38
  "bugs": {
36
39
  "url": "https://github.com/williamngan/pts/issues"
37
40
  },
package/tsup.browser.js DELETED
@@ -1,21 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig((options) => {
4
- return {
5
- entry: {
6
- pts: 'src/_script.ts'
7
- },
8
- format: ['iife'],
9
- platform: 'browser',
10
- splitting: false,
11
- clean: false,
12
- outExtension({ format }) {
13
- return {
14
- js: `.js`,
15
- }
16
- },
17
- banner: {
18
- js: `/* Copyright © 2017-${new Date().getFullYear()} William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details. */`
19
- }
20
- }
21
- });
package/tsup.min.js DELETED
@@ -1,23 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig((options) => {
4
- return {
5
- entry: {
6
- pts: 'src/_script.ts'
7
- },
8
- format: ['iife'],
9
- platform: 'browser',
10
- splitting: false,
11
- minify: true,
12
- sourcemap: true,
13
- clean: false,
14
- outExtension({ format }) {
15
- return {
16
- js: `.min.js`,
17
- }
18
- },
19
- banner: {
20
- js: `/* Copyright © 2017-${new Date().getFullYear()} William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details. */`
21
- }
22
- }
23
- });
package/tsup.module.js DELETED
@@ -1,15 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig((options) => {
4
- return {
5
- entry: {
6
- index: 'src/_module.ts'
7
- },
8
- format: ['cjs', 'esm'],
9
- splitting: false,
10
- clean: true,
11
- minify: false,
12
- dts: true,
13
- sourcemap: false
14
- }
15
- });
package/webpack.es5.js DELETED
@@ -1,82 +0,0 @@
1
- /*
2
- * webpack.es5.js
3
- */
4
-
5
- var webpack = require('webpack');
6
- var path = require('path');
7
-
8
- var LIB_PATH = path.resolve(__dirname, 'src/_module.ts')
9
- var BUILD_PATH = path.resolve(__dirname, 'dist')
10
-
11
- module.exports = {
12
-
13
- mode: 'development',
14
- devtool: 'source-map',
15
-
16
- entry: {
17
- pts: LIB_PATH
18
- },
19
-
20
- output: {
21
- libraryTarget: 'umd',
22
- umdNamedDefine: true,
23
- path: BUILD_PATH,
24
- filename: 'es5.js',
25
- globalObject: 'this'
26
- },
27
-
28
- // watchOptions: { poll: true }, // seems to need this for Windows Linux subsystem to watch
29
-
30
- resolve: {
31
- extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js']
32
- },
33
-
34
- module: {
35
- rules:[
36
- /*
37
- * Lintint
38
- */
39
- {
40
- test: /\.tsx?$/,
41
- loader: 'tslint-loader',
42
- enforce: 'pre',
43
- options: {
44
- emitErrors: true,
45
- failOnHint: true
46
- }
47
- },
48
- /*
49
- * Transpiling
50
- * Files are passed to ts-loader first, then babel-loader
51
- */
52
- {
53
- test: /\.tsx?$/,
54
- loader: [
55
- {
56
- loader: 'babel-loader',
57
- options: {
58
- presets: ['env'],
59
- plugins: [
60
- [
61
- 'babel-plugin-transform-builtin-extend', {
62
- globals: ['Array', 'Float32Array'],
63
- approximate: false
64
- }
65
- ]
66
- ]
67
- }
68
- },
69
- 'ts-loader',
70
- ]
71
- },
72
- ],
73
- },
74
-
75
- plugins: [
76
- new webpack.BannerPlugin(
77
- `pts.js ${require('./package.json').version} - Copyright © 2017-${new Date().getFullYear()} William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.`
78
- )
79
- ]
80
-
81
- };
82
-